[RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291) +---- Thread: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs (/showthread.php?tid=70115) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
|
- jimyx17 - 2010-11-22 Hi again, After make some changes to 0.7.7 version, I got it working again. The main problem was the encoding shouldn't be in ascii because there aren't any character in ascii code that match to that symbol, so I put all in utf-8 and added an adapter to the database to handle utf-8 strings. This is the files I have changed: dbupdate.py gamedatabase.py gui.py Now, I need to fix my last problem when I try to launch the emu I get the NoneType error. Thanks a lot Malte! Update: Update2: Again more bugfix over encondig problem: helper.py gameinfodialog.py The real problem now is that every time the script convert the unicode string returned by database, the script fails, because the database is already returning an unicode string, so we need to change this str(gameRow[util.ROW_NAME]) to this: gameRow[util.ROW_NAME]. Other way, the unicode string is converted to a plain ascii string. I hope this solve all encoding problems, now I need some sleep - Tomkun - 2010-11-22 Can someone clear up how to get a match with titles like "Alien Breed I", "Alien Breed II" etc? I don't really get it. - malte - 2010-11-22 @jimyx: Thanks a lot for the fixes. I will check them in detail and add it to the trunk. I am on a trip for some days now and don't know about my time and connectivity, so it may happen that it will last some days to get them in. I also have to test all this stuff because I had a lot of trouble with different encoding scenarios: filenames, dirnames, local desc files, online desc files, database, ... Just to make sure that your fixes don't mess up one of the other scenarios. But you seem to dig deep into the code. Any interest in joining the "team"? @Tomkun: First you must update to 0.7.7 if you haven't done already (I added extra sequel handling code in this release). Second you have to make sure that the game name that you search for ends with the sequel number. So if your rom name is "Alien Breed I (US)", you have to remove the " (US)" (note the empty space at the beginning). If you don't want to rename the rom, you can use the replace function in the config.xml. Or you wait for 0.7.8, I hope to add an option to replace all (*) and [*] stuff automatically before searching. - Tomkun - 2010-11-23 malte Wrote:@Tomkun: First you must update to 0.7.7 if you haven't done already (I added extra sequel handling code in this release). Second you have to make sure that the game name that you search for ends with the sequel number. So if your rom name is "Alien Breed I (US)", you have to remove the " (US)" (note the empty space at the beginning). If you don't want to rename the rom, you can use the replace function in the config.xml. Or you wait for 0.7.8, I hope to add an option to replace all (*) and [*] stuff automatically before searching. Yeah, I tried all that but still couldn't get it working. In the end, I deleted all my previous config and started again with the wizard but it still didn't work :confused2:. Secondly, some games have a 'sub-title' after the main title, e.g; "Alien Breed III - Tower Assault". How should I deal with them? Finally, I am noticing that some files don't get imported even if I deselect the two options in settings 'don't import games without descriptions/artwork'. - malte - 2010-11-23 @Tomkun: I tested lots of sequel games and all worked fine. can you post a log when you try to import these games? About sub titles: atm no chance. There is too much difference in the names. I guess if I start searching for substrings there will be too much mismatches (think of all the zelda variations f.e.) - Tomkun - 2010-11-24 malte Wrote:@Tomkun: I tested lots of sequel games and all worked fine. can you post a log when you try to import these games? I will keep experimenting, but I think my issues may have something to do with the synopsis file by SpyVsSpy, which uses a different naming system to me. I already have artwork for all my games, so if I set the scraper to MobyGames for example, will it overwrite what I already have? - mcborzu - 2010-11-24 Anything new I should be aware of as I'd like to knock this script out for my new skin or most of the skinning stuff the same... - malte - 2010-11-24 @Tomkun: It will not overwrite any files. It will rename the downloaded files to "romfile.ext" and checks if there is already a file with this name before downloading. @mcborzu: Would be great if you could do this. There is only one change: The button "Import Settings" can be removed completely. All other changes (config wizard etc.) already work with Night. - Tomkun - 2010-11-25 Last night, as an experiment I decided to set up a test environment. I made a new folder with only six roms, 3 known good ones and 3 that caused me issues. As expected, those three still didn't get scanned, but more surprisingly, the whole process took upwards of 20 minutes (I don't know how long exactly, I went for dinner). I checked the log and saw pages of warnings saying "whatever game was found in parsed results, but not in your rom collection." Does this mean that it is searching the synopsis file before checking which roms I actually have? Could this be why it takes so long, even for just six roms? Could this be why certain games won't scrape? Or... Is is all my fault and I have missed something? Very confused now... - malte - 2010-11-25 These large text synopsis files are not like xml documents where you can easily select one certain node. I have to parse the complete file to get the information I need. It is parsed game by game and then checks if this game is in your rom collection. I could add a check if all games are found and then stop searching. I guess the current version will continue to the end of the synopsis file. In earlier versions I first parsed the complete file and then checked against the roms. This was much faster and stopped when all games have been found. But it caused out of memory errors on xbox to hold the complete doc in memory. So I had to change this to game by game parsing. - Tomkun - 2010-11-25 malte Wrote:These large text synopsis files are not like xml documents where you can easily select one certain node. I have to parse the complete file to get the information I need. It is parsed game by game and then checks if this game is in your rom collection. I see, thanks for clearing that up - it makes perfect sense. I guess I'll just start using the online scrapers instead. - quakes - 2010-11-25 I have added a feature to your mod. I did this for my own enjoyment, but I trust others can make use of this feature as well. The feature that I have added is basically what this poster talked about a few months ago. It allows usage of 7z files containing many ROMs (letting you choose which one to play when you launch the game). It makes use of some external libraries, which I have only compiled for Windows so far, so it won't work on other platforms in its current form. It makes use of pylzma for the .7z file handling, which in turn requires hashlib, so I included a backported version for python 2.4 as well. The only source changes I've made are to helper.py, in the buildCmd() method. It now pops up a dialog if the file is a .7z file, letting you choose which of the ROMs inside to play (or, if there is only 1 ROM inside, it launches that one). To install, first install RCB 0.7.7. After that, download this archive and extract it in your %APPDATA%\XBMC\addons folder. When it asks you if you want to overwrite existing files/folders, answer yes. Again, this will only work on Windows. - hikaricore - 2010-11-25 quakes Wrote:I have added a feature to your mod. I did this for my own enjoyment, but I trust others can make use of this feature as well. Seems to me that it would be more useful if it were cross-platform since 7z is an open compression format I seriously doubt that the Windows limitation is anything that couldn't be resolved easily. - quakes - 2010-11-25 hikaricore Wrote:Seems to me that it would be more useful if it were cross-platform since 7z is an open compression format I seriously doubt that the Windows limitation is anything that couldn't be resolved easily. Indeed, all that is really needed is for the libraries (pylzma, hashlib backport) to be compiled for other platforms. I expect that no source changes would be needed. EDIT: By the way, I have a feature request. Here's a sample of some of my SNES ROM names: 7th Saga, The.7z Legend of Zelda, The - A Link to the Past.7z Lost Vikings, The.7z This causes some problems with the scraper, as you can imagine. If you can do something akin to Code: title = 'Legend of Zelda, The - A Link to the Past.7z' - wimpy - 2010-11-26 mcborzu Wrote:Anything new I should be aware of as I'd like to knock this script out for my new skin or most of the skinning stuff the same... Been trying out that new skin of yours and I must say I really enjoy your work I'd very much like to see a update making it RCB-friendly using the "same layout" as the movie/tvshow views if you find the time for it! Yet again, great work! |