Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: EnEsCe on April 17, 2009, 08:34:16 pm
-
Hey guys, a few things I found wrong with the new script core {2.8.0}
- nil
That's all I know so far, contact me if you find any script related errors.
-
very often at scripts:
"Access violation"
"Invalid opcode"
"Out of memory"
this sh*t never happend at 1.4.2, but happens at 1.5
-
MovePlayer still makes a player's weapon drop. This occurs in Hexer and didn't occur with 2.6.4
-
sry, mb i missed smth in that life but does procedure ForwardClient works in 2.6.5 ?? that procedure seems to be crashed O_o
-
sry, mb i missed smth in that life but does procedure ForwardClient works in 2.6.5 ?? that procedure seems to be crashed O_o
Make sure you're using the new syntax:
http://devs.soldat.pl/wiki/index.php/ForwardClient
If you use it correctly and the script compiles and after which you still have problems, make your own topic where you outline the exact issues you might be having with it.
-
ups, sorry...i'm just noob ^^ it'sworks greatly :-[
also... why this procedure needs player IP and Port? server couldnt get it automatically?
-
StartVoteMap function doesn't work.
21:39:32 › xmRipper: I think StartVoteMap function doesn't work on dedicated 265. Can anyone test it?
21:42:35 › Curt`: agreed
-
StartVoteMap function doesn't work.
21:39:32 › xmRipper: I think StartVoteMap function doesn't work on dedicated 265. Can anyone test it?
21:42:35 › Curt`: agreed
Actually, that wasn't was I was saying agreed to. I was saying I agreed to liking using custom vote systems better because you can get more information out of it. But I just tested this, /votemap nor does the function work. Neither does StartVoteKick, nor /votekick (but I don't even know for certain if that was a built-in command.)
-
Yeah I already know neither of the vote initiating functions work. Fixed it a couple of weeks ago
-
alpha no longer works for WriteConsole?
I tried WriteConsole(0, ' ', $00000000); and I saw it as black!
Also tested wit alpha of 7F.
I require alpha for what im doing :(
-
Nothing has ever been added to remove alpha from the console, as far as I can remember Alpha had never worked with the console anyway
-
Nothing has ever been added to remove alpha from the console, as far as I can remember Alpha had never worked with the console anyway
I think when WriteConsole and stuff was first out, when I tested it, it seemed to work. Or my memory is failing on me.
Could you (with a please) add support for it? :P
-
DrawText's 65-character limitation
EDIT: actually often crashes for all players / players who see it (possible due to length?)
-
Stop posting things that aren't bugs, thanks.
-
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);
begin
if (PrimaryNum <> 255) then
ForceWeapon(ID, 255, 255, 0);
end;
Join, pick a weapon (should change you to hands), then switch to secondary weapon. Ammo goes to 0, animation locks up, can't change weapons, eek!
Rolling/proning fixes it, and it only happens with high numbers (past all the guns).
-
what about GetPlayerStat(ID,'Ammo') after the ForceWeapon? Is it fixed?
-
idk about GetPlayerstat(id, 'Ammo); but Forceweapon() is fixed, yes
-
idk about GetPlayerstat(id, 'Ammo); but Forceweapon() is fixed, yes
What was the bug?
-
In server version 2.6.4 it crashed the whole server when used.
-
I'm talking about this http://forums.soldat.pl/index.php?topic=28084.0
-
function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer):Integer;
begin
Result:=0;
end;
This works with deadly polygon, but always cause damage with flamer and hurts polygons.
God mode in climb don't work :(
-
function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer):Integer;
begin
Result:=0;
end;
This works with deadly polygon, but always cause damage with flamer and hurts polygons.
God mode in climb don't work :(
Try Result := -Damage;
This may work.
-
Try Result := -Damage;
This may work.
This work, but not perfectly.
For damage from flamer and hurts polygons, the function OnPlayerDamage is called only if the Victim have 0 of health.
Put an "WriteConsole(Victim,intToStr(GetPlayerStat(Victim,'health')) ,$000000)" inside of function OnPlayerDamage and see.
-
Use result := -9999999 and it will work for sure ( testet on my server ).
-
Using result := -9999999 is fecking useless and stupid.
Integer: -32768 to 32767
-
What? Integer is 4 bytes, -2147483648 to 2147483647...... -32768 to 32767 is a 2 byte SmallInt, which is not used in the core.
-
Is this fixed in 2.7.0 too? As I know the m79 problem was fixed in 2.7.0.
-
Strange. Didn't know that it's not like in pascal...
-
Strange. Didn't know that it's not like in pascal...
It technically isn't even pascal...it's a weird perversion of Delphi, which in itself is a weird perversion of Object Pascal.
It's a few generations younger :P
-
It technically isn't even pascal...it's a weird perversion of Delphi, which in itself is a weird perversion of Object Pascal.
Technically it is a subset of Object Pascal, not Delphi.