[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
|
- bmfrosty - 2010-08-02 ok. Modified config.xml from the testdata and put it in the right place. Probably need to modify command lines for launching snes games. Then I need to figure out how to add more collections - is there a way to do that in RCB, or do I need to hand edit config.xml? - bmfrosty - 2010-08-02 made applaunch.sh +x Still not starting anything.. Hrm... - bmfrosty - 2010-08-02 Code: 15:28:08 T:2967161712 M:1368596480 NOTICE: RCB_INFO: cmd: \/home\/bmfrosty\/\.xbmc\/addons\/Rom\ Collection\ Browser/applaunch.sh /usr/bin/zsnes -m "/home/bmfrosty/Testdata V0.5/Collection V3/Roms/Super Mario Kart.smc" Looks a little better. Now resets XBMC. This bit - /bmfrosty\/\.xbmc\/a - seems to be escaping . in .xbmc. Seems like it may be wrong. Not sure on how to fix. EDIT: Nevermind that last bit. I edited helper.py with the absolute path and it's still doing the same thing. It may be a problem with applaunch.sh at this point, and I really don't know what to do about that. I'm going to see if I can figure out if zsnes executes though. - bmfrosty - 2010-08-02 As far as I can tell, zsnes does not execute. I changed this: <emulatorCmd>touch ~/blahblahblah.blah</emulatorCmd> When I try and start a rom, blahblahblah.blah doesn't get created. I don't know what I need to change in applaunch.sh, so I'm reluctant to try. - bmfrosty - 2010-08-02 I don't think it's escaping out the spaces. I modified it like this: Code: bmfrosty@XBMCLive:~/.xbmc/addons/Rom Collection Browser/resources/database$ cat ../../applaunch.sh Code: bmfrosty@XBMCLive:~/.xbmc/addons/Rom Collection Browser/resources/database$ cat ~/launcher.txt - malte - 2010-08-02 I see you have been busy Quote:Ok. So it looks like Dharma wants includes.xml in skins/Default/720p - so I copied that over from another skin, and copied over the PAL files from rombrowser. It seems to be getting further. Thats weird. On all systems that I tried until now it was ok to ignore the 720p folder. There is still no problem in Dharma on windows with it. I started developing on a 15" TV so I decided to make an 800x600 UI. Always wanted to fill the gap but had no time until now. Quote:ok. Modified config.xml from the testdata and put it in the right place. Probably need to modify command lines for launching snes games. Then I need to figure out how to add more collections - is there a way to do that in RCB, or do I need to hand edit config.xml? Planned for the next version (always NEXT version). I know, configuration is a pain atm but I will try to get this easier when I feel that the import, browse, launch workflow is stable enough. About launching games: 1. Did you see that testdata.zip does not contain roms (at least no SNES because there are no freeware roms that I could ship with it)? There are just some empty placeholder files to get the import done and to show some artwork. Maybe your tests will work if you replace one of the files with a working rom with the same name. 2. There are two ways of launching: solo and non-solo mode (useEmuSolo in config.xml). Solo mode uses the applaunch.sh that kills xbmc, launches the emulator and then restarts xbmx (you need to make it executable, but it seems that you have already). I like the non-solo mode more because it just minimizes XBMC and launches the emulator side by side. I had trouble with this configuration with some emulators so I use both modes depending on the emulator. If you are able to launch an emulator with a rom file on the command line the same line should work in RCB (replace rom file with %ROM% of course). If you think that escaping the command could be a problem you could try to disable it: escapeCommand in config.xml. Thanks for spending so much time to get this up n running. I hope you won't regret it Cheers, malte - bmfrosty - 2010-08-02 malte Wrote:Thats weird. On all systems that I tried until now it was ok to ignore the 720p folder. There is still no problem in Dharma on windows with it. I started developing on a 15" TV so I decided to make an 800x600 UI. Always wanted to fill the gap but had no time until now.Interesting. Something to put on the to-do list then I guess. That part is functional as is right now, even if it isn't pretty. Quote:Planned for the next version (always NEXT version). I know, configuration is a pain atm but I will try to get this easier when I feel that the import, browse, launch workflow is stable enough.Ah. OK. I guess I can stop trying to figure out the button combination for now. Quote:About launching games:My Super Mario Kart is special: bmfrosty@XBMCLive:~/Testdata V0.5/Collection V3/Roms$ ls -aFl Super\ Mario\ Kart* -rw-r--r-- 1 bmfrosty bmfrosty 524800 2005-12-22 20:39 Super Mario Kart.smc -rwxr-xr-x 1 bmfrosty bmfrosty 355471 2010-08-01 15:16 Super Mario Kart (U) [!].zip* bmfrosty@XBMCLive:~/Testdata V0.5/Collection V3/Roms$ Quote:2. There are two ways of launching: solo and non-solo mode (useEmuSolo in config.xml). Solo mode uses the applaunch.sh that kills xbmc, launches the emulator and then restarts xbmx (you need to make it executable, but it seems that you have already). I like the non-solo mode more because it just minimizes XBMC and launches the emulator side by side. I had trouble with this configuration with some emulators so I use both modes depending on the emulator.In some testing with launching mednafen from executor, I found that leaving XBMC running causes me some problems, especially since I use NES controllers to navigate XBMC. applaunch.sh is probably the way for me. Quote:If you are able to launch an emulator with a rom file on the command line the same line should work in RCB (replace rom file with %ROM% of course). If you think that escaping the command could be a problem you could try to disable it: escapeCommand in config.xml.I'll look into that one. It may be the key. - bmfrosty - 2010-08-02 With escapeCommand true or false, the launcher.txt that I'm created gets populated the same way. It's midnight. Going to bed. - malte - 2010-08-02 Quote:Ah. OK. I guess I can stop trying to figure out the button combination for now. Maybe this is misleading. config.xml is not read at runtime. You have to press "Import Settings" if you make changes to config.xml (Then the content of config.xml will be imported to DB). Maybe this is also the problem with trying out different escapeCommand-Configurations? But I have to check this part of code again. In your first example it looks like it only escapes the invoke of the applaunch.sh but not the parameters passed to it. But I never had problems with it like this. Quote:In some testing with launching mednafen from executor, I found that leaving XBMC running causes me some problems, especially since I use NES controllers to navigate XBMC. applaunch.sh is probably the way for me. You could try the following: 1. open a shell 2. run xbmc from this shell 3. launch RCB 4. launch an SNES game 5. Now you should see the output of applaunch.sh in the shell. Right? Maybe this helps with narrowing down that issue. And one last idea: What does your emuCmd look like? Do you use something like this (with "" around %ROM%)? Code: zsnes -m "%ROM%" - bmfrosty - 2010-08-02 I will start importing the configs every time I make changes here on out. It didn't occur to me that I would need to re-import them. Could you set it up in a future version so that it checks the file date of config.xml every time it starts, and if it changes offer to re-import? I'll run through these scenarios when I get home from work this evening. - bmfrosty - 2010-08-03 One more feature request. Can I have variables so that I can pass the X and Y FS resolution that XBMC is running at to the command line? It would be really useful in mednafen to have mednafen adapt to different televisions based on the XBMC settings. - bmfrosty - 2010-08-03 @malte Did you just throw a 0.5.3 on the repository? - bmfrosty - 2010-08-03 Ok. This is starting to make some sort of sense. It works just fine when I start a WM before I start xbmc. On the other hand, if XBMC is the window manager it doesn't work. Probably because zsnes wants xbmc to be the window manager. Dingdingding. - bmfrosty - 2010-08-03 I think the end point here may be to stick a window manager in before xbmc. It may also be worth recruiting further help from some of the LIVE gurus or other developers. There may be a workaround somewhere without having to resort to a window manager. - malte - 2010-08-03 bmfrosty Wrote:It didn't occur to me that I would need to re-import them. Could you set it up in a future version so that it checks the file date of config.xml every time it starts, and if it changes offer to re-import? In a later relase I want to read the xml on the fly and replace the Import Settings completely. Or make it available as settings dialog. But as a first shot I could do it like you suggested. Quote:One more feature request. Can I have variables so that I can pass the X and Y FS resolution that XBMC is running at to the command line? It would be really useful in mednafen to have mednafen adapt to different televisions based on the XBMC settings. On my list now. Quote:Did you just throw a 0.5.3 on the repository? Yes, I hope I have not been not too hasty. But as we got this pysqlite thing through the door I thought that we have solved all Dharma related trouble. What we have now seems to be more Live related. There is only one change to 0.5.1/2 on the software side: After import settings I backup config.xml to the users addon_data dir because I read that XBMC flushes the complete addon directory when you update an addon. What I forgot before submitting it to the repo was one little patch that could make sense to Live users (see details below). Quote:I think the end point here may be to stick a window manager in before xbmc. It may also be worth recruiting further help from some of the LIVE gurus or other developers. There may be a workaround somewhere without having to resort to a window manager. Maybe we should go back on the non-solo route again. There was another Live user here in this thread who had trouble with launching games from Live. He had another error so I did not think it could be related to your problem. Maybe you could have a look at this page if this fits in your scenario (needs a code change but it seems that you are familiar with your editor): http://forum.xbmc.org/showthread.php?p=533890#post533890. The line to change is now 167. Maybe I will submit this patch as an update for 0.5.x but it is already included in 0.6.x that is nearly feature complete now but just not Dharma ready. |