Author Topic: Records in soldatserver_legacy  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

Offline elMorvano

  • Major(1)
  • Posts: 44
  • Center Of Soldat
    • Center Of Soldat
Records in soldatserver_legacy
« on: April 08, 2014, 06:20:56 pm »
I'm lying and crying...

the simple script
Code: [Select]
type
     tPlayer = record
          x,y: single;
     end;
var
     Players: array[1..32] of tPlayer;
{************************************************************************************}
procedure RestartPlayer(ID:byte);
begin

Players[1].x:=2;
end;

Info from server linux:
  • Script3 -> [Error] (13:13): Semicolon (';') expected

Even if I write there ';' then it still wants this semicolon.

This works normal in soldatserver_legacy.exe in my Windows XP

In the last posts is answer why I'm using legacy: http://forums.soldat.pl/index.php?topic=43432.msg519193#new

Does anyone know the solution?? I've got script with many records :((
www.facebook.com/coSoldat

Center Of Soldat

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: Records in soldatserver_legacy
« Reply #1 on: April 09, 2014, 10:45:23 am »
Code: [Select]
Players[ID].x := single(2);
Give whole procedure RestartPlayer(ID:byte);

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Records in soldatserver_legacy
« Reply #2 on: April 09, 2014, 12:00:20 pm »
@dominikkk26, you made my day :D

Only devs can do something with this, but if I have a good memory legacy version isn't developed anymore. Shoozza always said that legacy version will be removed someday. So whatever you want to do with this version, it won't be permanent solution. Of course you can always remove all records from script, but I wouldn't propose this even my worst enemy. And why this works great on windows? Who knows? :D Soldat always had a lot of secrets :D
Classic banana

Offline elMorvano

  • Major(1)
  • Posts: 44
  • Center Of Soldat
    • Center Of Soldat
Re: Records in soldatserver_legacy
« Reply #3 on: April 09, 2014, 01:50:50 pm »
Of course you can always remove all records from script, but I wouldn't propose this even my worst enemy.

By notepad++ I just changed all names of variables = I deleted records and now script works correctly...

So whatever you want to do with this version, it won't be permanent solution.

Shoozza said that they will try to repair this crash bug in 1.6.8 version... so I've to wait.

@dominikkk26, you made my day :D
:D
www.facebook.com/coSoldat

Center Of Soldat

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Records in soldatserver_legacy
« Reply #4 on: April 09, 2014, 04:39:11 pm »
(...) but if I have a good memory legacy version isn't developed anymore.
This isn't, true (unfortunately, imo). Legacy version of soldat, aka compiled with delphi&cross kylix verion of soldat will stay as long as client isn't ported to FPC. Which doesn't seem to be moving by much recently, so i guess support for legacy version is going to last long.
Nevertheless, this particular bug is somewhere in pascalscript library, i'm afraid that tracing&fixing it might be quite some work to do. So don't expect it to be fixed soon, even if that means that scripting on legacy server is pretty much impossible.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.