Sanny Builder Bug Tracker - Sanny Builder
View Issue Details
0000021Sanny Builder[All Projects] compilerpublic2013-10-15 01:292017-04-22 16:40
Deji 
Seemann 
normalmajoralways
closedunable to reproduce 
3.1.2 
 
0000021: Error on file includes mid-code
SB3 encounters an error when including files after certain control structures. It will give an error like "Couldn''t load fileb.txt." and then throw an error like "Access violation at address 005402EB in module 'sanny.exe'. Read of address 00000007." on every attempt to compile after.
Try the following code...
*************************************************************************
{$CLEO}
{$NOSOURCE}
{$I fileb.txt}

WAIT 0

IF NOT IS_GAME_VERSION_ORIGINAL
{$I fileb.txt}
THEN
END
*************************************************************************

There will be an error at line 8 saying fileb.txt cannot be included. Will happen anywhere after line 7. Same with this code...

*************************************************************************
WHILE NOT IS_GAME_VERSION_ORIGINAL
    {$I fileb.txt}
    WAIT 9999
END
*************************************************************************
No tags attached.
Issue History
2013-10-15 01:29DejiNew Issue
2013-10-15 01:29DejiStatusnew => assigned
2013-10-15 01:29DejiAssigned To => Seemann
2013-10-15 20:18SeemannNote Added: 0000021
2013-10-19 16:22SeemannStatusassigned => feedback
2013-10-19 18:30DejiNote Added: 0000022
2013-10-19 18:30DejiStatusfeedback => assigned
2017-04-22 16:40SeemannNote Added: 0000046
2017-04-22 16:40SeemannStatusassigned => closed
2017-04-22 16:40SeemannResolutionopen => unable to reproduce

Notes
(0000021)
Seemann   
2013-10-15 20:18   
I can't reproduce this bug. The code is compiled fine for me. Can you give more examples, or probably the whole code (with an included file content)?
(0000022)
Deji   
2013-10-19 18:30   
Well there doesnt need to be any content in the included file, it fails there either way.
http://ipic.lv/i4/38f01263/3acbf5f09304521.jpg [^]

I am of course using SCR keywords instead of opcodes so perhaps that could be a cause, but the INI entries for the commands used are essentially the same as the SB defaults.

However that access violation error only seems to happen on the script for Black Market, which is very complex anyway.
(0000046)
Seemann   
2017-04-22 16:40   
Closed in Spring 2017 Cleanup