Author Topic: [ASCompiler] 2238 scripts  (Read 2474 times)

Offline Janusz2238

  • forum.newfmc.pl
[ASCompiler] 2238 scripts
« 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
Polskie Pustkowia http://forum.newfmc.pl/

Offline wladimiiir

  • Rotator
  • Independent FOnline developer
Re: [ASCompiler] 2238 scripts
« Reply #1 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.

Offline Janusz2238

  • forum.newfmc.pl
Re: [ASCompiler] 2238 scripts
« Reply #2 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 :)
Polskie Pustkowia http://forum.newfmc.pl/

Offline Wipe

  • Rotator
  • Random is god
Re: [ASCompiler] 2238 scripts
« Reply #3 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 :)
« Last Edit: July 20, 2013, 04:51:58 pm by Wipe »
Games are meant to be created, not played...