Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v35] [RAZE] Unable to start games due to Script error, "raze.pk3:menudef.txt" line 815: FLoat expected, got 0.5 #7123

Closed
maioni opened this issue Sep 23, 2022 · 2 comments

Comments

@maioni
Copy link

maioni commented Sep 23, 2022

When trying to launch games from Emulation Station, almost of the time it will get stuck in the transaction animation. [Issue not reproducible at v34 stable]

Pre-Condition:

Install a game like shadow warrior classic into RAZE roms folder:
Guide: https://wiki.batocera.org/systems:raze#roms

shadow warrior classic is a free game, you can get it in Steam or GOG

/userdata/roms/raze/Shadow Warrior.raze        [Create this file with this content]
                                                              └── FILE = /shadow/SW.GRP
/userdata/roms/raze/shadow/   [Files from game folder /Shadow Warrior]
                                           └── SW.GRP
/userdata/roms/raze/shadow/music/      [Optional]
                                                    └── shadow.ogg to shadow14.ogg (or track02.ogg to track14.ogg) (optional)

Steps to Reproduce:
1 -At Emulation Station, update game list
2 - Goes to RAZE system
3 - Select a raze game (shadow warrior)
4 - If necessary, select the game to launch: shadow warrior (if it has more file then base file, some add-ons)

Actual Result:
4 - RAZE launches and loads game correctly, use can play.

Expected Result:
4 - RAZE launches but get a error after select the game.

Note:
Same files were tested on RAZE at PC and worked fine.
Issue reproducible for any RAZE game.

Attachments:
Log file:
blood_cryptic.zip
shadow.zip
blood.zip

Running at PC, same folder structure, same files:
ShadowRAZE01
ShadowRAZE02
ShadowRAZE03

at Batocera:
ShadowBatocera01
ShadowBatocera03
ShadowBatocera02

Links:
https://github.com/ZDoom/Raze/releases/tag/1.5.0
https://zdoom.org/wiki/Raze
https://forum.zdoom.org/viewtopic.php?t=71962

@maioni
Copy link
Author

maioni commented Sep 25, 2022

After delete these files, the games are working again, but Blood games (that worked before) and Nam still not working.
Blood remains displaying the Script error described before, and the Nam back can't find the CON file NAM.CON
Raze files deleted:
/system/configs/raze/*
/saves/raze/*
I also verified that the /saves/raze/gprcrccache.txt store found file to be used by raze (GRP files), but no matter they are stored into /roms/raze or into /userdata if the files was stored there by mistake

@maioni
Copy link
Author

maioni commented Sep 26, 2022

Issue closed, all bad behaviors were reproducible due to bad configuration, the wiki was updated with some information about it:

Game does not launch:

- Check logs files es_launch_stderr.log and raze.log - Make sure all files are available at roms/azure - Make sure the .raze launch file is setup correctly

   Check the case sensitive
   Check the use of FILE, FILE+ and CON
       FILE and FILE+ must use the path /roms/raze/<gamefolder>/<main file or add-on>
       CON must use the relative path to the main file, so just <con file> (normally store in the same folder as the main file)
   .raze files mustn't have empty lines, so delete the empty lines
   As a last alternative, reset system files: delete files from /userdata/system/configs/raze/* and /userdata/saves/raze/*

Engine ask for which file initialize:

- Make sure that add-ons that must be ziped, are ziped and are not stored into the game folder, otherwise raze can't decide which file choose.

Script error “raze.pk3:menudef.txt” line 815: Float expected, got 0.5

- If the Raze engines does not find the files specified by the .raze file, it will scan the whole shared folder to find them, so it could wrong set a file that could be stored out of roms/azure folder, and will prevent the game to launch correctly.

- This error is reproducible due to Raze engine can't decide which main or add-on file to launch, even if the user indicates in the interface it runs error. 

@maioni maioni closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant