Author Topic: Script doesn't work  (Read 1122 times)

0 Members and 1 Guest are viewing this topic.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Script doesn't work
« on: November 19, 2007, 11:24:24 pm »
I'm just learning how to script and started experimenting with things and wrote this uber-simple, totally noob script, but it doesn't work, the dedicated server shuts itself down and only gets up to "compiling 'lol script'".
When I try opening it up again it won't and there is no log file, even though I deleted the script, the only solution i've found is uninstalling and re-installing soldat server.

Script:
Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
begin
  WriteConsole(0,'Someone died!',$EE81FAA1);
end;

(its supposed to say to all players "someone died" when someone dies)
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Script doesn't work
« Reply #1 on: November 19, 2007, 11:45:39 pm »
Would help if you actually told us the error.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script doesn't work
« Reply #2 on: November 20, 2007, 12:00:23 am »
I try to run the script but the soldat server shuts down, in the log file it only logs up to the point where it is compiling the script :P. It doesn't mention any errors.

After that I can't run the soldat server at all and log files are empty.

Could you tell me if it is my scripts fault?, or is it ok.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline chrisgbk

  • Moderator
  • Veteran
  • *****
  • Posts: 1739
Re: Script doesn't work
« Reply #3 on: November 20, 2007, 12:09:17 am »
Your script works fine for me; most likely you have something else wrong.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script doesn't work
« Reply #4 on: November 20, 2007, 06:25:15 am »
make sure you set all the stuff in soldat.ini
I've had issues where I forgot to set.. i believe admin log ..and it kept crashing, with no error..

Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: Script doesn't work
« Reply #5 on: November 20, 2007, 08:58:30 am »
i dunno but you can have disabled scripting in server.ini...
I'm going to write Tibia for Soldat

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: Script doesn't work
« Reply #6 on: November 20, 2007, 09:00:04 am »
Start the server first. If soldat is already running the soldat server won't start. (might be the problem)

Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: Script doesn't work
« Reply #7 on: November 20, 2007, 12:01:18 pm »
sth like "could not bind socket. adress ip and port already in use"
I'm going to write Tibia for Soldat

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script doesn't work
« Reply #8 on: November 20, 2007, 11:29:08 pm »
Oh ok lol,

I never knew you needed to set a pass
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs