fodev.net

FOnline Development => Questions and Answers => Topic started by: Janusz2238 on July 20, 2013, 12:55:55 pm

Title: [ASCompiler] 2238 scripts
Post by: Janusz2238 on July 20, 2013, 12:55:55 pm
I try compile 2238 scripts in notepad (args: $(FileName) -client -p $(FileNameNoExt).fosp)

But i got error: client_gui_ex.fos(764) :
Code: [Select]
ERROR : No matching signatures to 'string::resize(const uint)'.
Best regards
Janusz
Title: Re: [ASCompiler] 2238 scripts
Post by: wladimiiir on July 20, 2013, 01:10:12 pm
Are you using 2238 scripts with the latest SDK version? If so, than you have to use rawResize(uint) on string type instead.
Title: Re: [ASCompiler] 2238 scripts
Post by: Janusz2238 on July 20, 2013, 03:14:34 pm
Hi, thanks for reply. I have 2238 sdk branch. It works, but I dont know how test script without server. Thats why I want use ASCompiler :)
Title: Re: [ASCompiler] 2238 scripts
Post by: Wipe on July 20, 2013, 04:49:44 pm
Until you merge with newer SDK version, you can use ASCompiler.exe which is in Server/scripts/ directory; it's version where string::resize() is still declared. We always kept ASCompiler in synch (and i recommend to do that in own projects...) during merges to newer SDK, so problems like this one (changes in SDK produces errors) never existed :)