FOnline Development > General Discussion
"Ready Made" Solutions - Scripts, tricks, tips, and other useful info.
AnarchCassius:
--- Quote ---[35:691] Script message: client_main : Error : Unexpected end of file : 14975, 1.
[35:769] Script message: client_main : Info : While parsing statement block : 12706, 1.
--- End quote ---
New to FOnline and AngelScript but based on my general knowledge of coding errors I would hazard a guess that you messed up the formatting on line 12706 and an unresolved bit of code is causing the parser to freak out at the end of the file at line 14975.
Check where you inserted this code:
--- Code: ---...
bool start()
{
...
Init_GUI_OnHead();
...
}
...
void render_iface( uint layer )
{
...
if( layer == 3 )
{
...
Draw_GUI_OnHead();
...
}
...
}
...
bool key_down( uint8 key )
{
...
if(key == DIK_F6)
{
Change_GUI_OnHead();
return true;
}
if(key == DIK_F7)
{
ShowNPC_GUI_OnHead();
return true;
}
...
}
...
--- End code ---
Make sure all brackets and parens are in proper pairs and nothing is left unclosed.
Moe Lester:
Thanks mate! Yeah, I maked some minor faults, but your post motivated me to check out this crap again and again and at end I fixed my faults, also I experimented with this code and found working solution.
void render_iface( uint layer )
{
if(layer == 1 ) I changed this value to 3
{
CritterCl@ chosen = GetChosen();
if(valid(chosen) && chosen.Perk[PE_AWARENESS] != 0)
{
InitAwarenessHead();
}
}
if( layer == 3 )
{
DrawChosenTabs();
GUI_Render(); changed to GUI_Render( false );
}
if( layer == 3 )
{
InitTimeouts();
DrawChosenTabs();
GUI_Render(); changed to GUI_Render( false );
}
Now awareness and timeouts working for me without problems :)
AnarchCassius:
Good to know my general experience works in FOnline. :) Happy to help.
Navigation
[0] Message Index
[*] Previous page
Go to full version