Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
06359 Interface Major Always Sep 1, 2016, 12:09 Sep 1, 2016, 14:33
Tester ozfalcon View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Invalid report OS Linux (32-bit)
Status [?] Closed Driver
Version 0.177 Fixed in Version Build Normal
Summary 06359: Lua hiscore.ini configuration file: The first line from file IO appears to have unwanted data returned
Description When trying to set the hiscore game save path the plugin would fail (Path is assigned NIL value).

On further investigation, Plugin would work if the 1st line was a dummy entry - Which indicated an issue with IO for first line.

I have made a plugin which highlights the issue for easy reproduction and observation.
Steps To Reproduce Simply unzip the "loadtable" plugin and drop into your plugins directory.

Run mame from command line, No rom is required.
Exit mame.

Observe the "loadtable" plugin printed output.
Notice the string length does not match the actual characters visible in the displayed string.
Additional Information Displayed output from "loadtable" plugin.
./sdlmame.0177.Mainline
token = 1st_token
token Length = 12
token value = does/not/match/length
token = hi_path
token Length = 7
token value = /home/my/hiscore/save/path
token = data_path
token Length = 9
token value = /home/my/hiscore/data/path
Test Table Value: /home/my/hiscore/save/path
Flags
Regression Version
Affected Sets / Systems Lua hiscore.ini configuration file
Attached Files
zip file icon loadtable.zip (1,335 bytes) Sep 1, 2016, 12:20 Uploaded by ozfalcon
Demonstrate bug plugin
Relationships
There are no relationsihp linked to this issue.
Notes
1
User avatar
No.13094
crazyc
Developer
Sep 1, 2016, 14:33
Your loadtable.ini has a utf-8 bom at the start. I don't know what editor you used to create it but you need to save it without the bom.