Menu

#27 Java errors

v0.64
closed-fixed
java (5)
5
2018-02-22
2017-01-02
JCV
No

Hi Frank,

Dunno if you still support your frontend, but since I still try to use it, I do hope you will read this.

I cannot start any amiga jgamebase apps. For the music, audacious doesn't recognise most of the music formats. I have not clue what Javamod is.

But more worring, I cannot start FS-UAE anymore. When I click on a game title, I get java error. From jgamebase.log:

Extract file '/home/user/Games/Emulateurs/Amiga/FloppyDisks gb/F/Fallen Angel.zip' to temp dir '/tmp/jgamebase'.
extract 'Fallen Angel.adf'
FileToRun: '/tmp/jgamebase/Fallen Angel.adf'.
Using Emulator: 'FS-UAE'.
SCRIPT
Loading includes '/Datas/Games/Emulateurs/C64/GameBase/Includes/includes.js'.
Executing script '/home/user/.jgamebase/GameBase2_Amiga/Scripts/fs-uae.js'...
TypeError: cpu_type.contains is not a function in <eval> at line number 1066
IMPORTANT: When locating the error please bear in mind that an include of 1020 lines was added before your script:
So the error really occured at line 46 in the script '/home/user/.jgamebase/GameBase2_Amiga/Scripts/fs-uae.js' .

I tried to get rid of the lines in fs-uae.js that stuck jgamebase:

if (chipset.contains("*ECS*")) {
  model = "A500+";
}
if (cpu_type.contains("*20*")) {
  model = "A1200";
}

But even so I get a new error, that I cannot debug:

Extract file '/home/user/Games/Emulateurs/Amiga/FloppyDisks gb/F/Fallen Angel.zip' to temp dir '/tmp/jgamebase'.
extract 'Fallen Angel.adf'
FileToRun: '/tmp/jgamebase/Fallen Angel.adf'.
Using Emulator: 'FS-UAE'.
SCRIPT
Loading includes '/Datas/Games/Emulateurs/C64/GameBase/Includes/includes.js'.
Executing script '/home/user/.jgamebase/GameBase2_Amiga/Scripts/fs-uae.js'...
TypeError: Packages.jgamebase.tools.IniFileManager is not a function in <eval> at line number 828
IMPORTANT: When locating the error please bear in mind that an include of 1020 lines was added before your script:
So the error really occured at line 828 in the include '/Datas/Games/Emulateurs/C64/GameBase/Includes/includes.js' .

I use smoothly jgamebase for C64 stuff, but for amiga stuff it has become unusuable, I am afraid!

Happy new year!

Discussion

  • F. Gerbig

    F. Gerbig - 2017-01-03

    Hello Psykotik,

    Happy new year to you!

    I found the problem - I forgot a "new" instantiating the iniFileManager (dunno why it worked the whole time; perhaps a difference between the old JavaScript engine "Rhino" and the new "Nashorn"?).

    I just uploaded a fixed version - please test :-)

    Kind regards,
    Frank

     
  • F. Gerbig

    F. Gerbig - 2017-01-03
    • status: open --> pending
    • Priority: 1 --> 5
     
  • JCV

    JCV - 2017-01-03

    It works! Thanks Frank.

    Is that intended that I keep out the abovementioned part

    if (chipset.contains("*ECS*")) {
      model = "A500+";
    }
    if (cpu_type.contains("*20*")) {
      model = "A1200";
    }
    

    Or is there anything to fix? If I keep this section, nothing runs. If I remove it, it runs perfectly.

     
  • F. Gerbig

    F. Gerbig - 2017-01-04

    Hello Psykotik,

    I am glad that it is working.

    The mentioned part doesn't evoke problems for me. It should set the Amiga model depending on settings in the database Name=Value settings.
    If it doesn't work for you (perhaps you use a newer version of fs-uae - I saw that Frode Solheim has deprecated this option on newer versions) leave it out :-)

    Kind regards,
    Frank

     
  • F. Gerbig

    F. Gerbig - 2017-01-04
    • status: pending --> closed-fixed
     
  • Anonymous

    Anonymous - 2018-02-22

    I got the same problem. Removing the mentioned lines does work. But only for NON AGA games. If i want to play AGA games it doesnt work without this line. I have JAVA8 installed and set and also the newest FS-UAE. So this is not the reason.

     
  • F. Gerbig

    F. Gerbig - 2018-02-22

    Hi Anonymous!

    Strange, in my setup it is working: jGameBase V0.68-1 with openjdk8 (1.8.0_151) and fs-uae (2.8.2).
    Please check if you use the same versions and post the exact error message you get.

    Kind regards,
    Frank

     

Anonymous
Anonymous

Add attachments
Cancel