banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ET Pro 3.2.2 beta test release 3 + serverside-mod support
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    banimod / etpro / ettv forums Forum Index -> ET Pro News
View previous topic :: View next topic  
Author Message
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Wed Nov 02, 2005 11:30 pm    Post subject: ET Pro 3.2.2 beta test release 3 + serverside-mod support Reply with quote

We are working on scripting support for ETPro to allow serverside-mods to ETPro.

Testers may download a modified qagame with support for the new ETPro Lua Mod API.


Last edited by bani on Mon Nov 21, 2005 9:55 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RoadKillPuppy



Joined: 08 Apr 2004
Posts: 207
Location: Belgium!

PostPosted: Thu Nov 03, 2005 1:21 am    Post subject: Reply with quote

Sounds sweet, are there any 'hello world' examples available for the etpro-integration?
Back to top
View user's profile Send private message Visit poster's website
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Thu Nov 03, 2005 1:29 am    Post subject: Reply with quote

reyalp has written some tests scripts which actually do some useful things. maybe he will be willing to post some.

the wiki now has sample code.

some quick lua caveats for newbies "jumping in" to lua:

  • variable scope defaults to global, unless explicitly defined 'local'
  • referencing an undefined variable or function returns "nil"
  • there is no 'continue' for loops
  • negation is ~ not !, eg ~= not !=
  • string concatenation is .. (two periods)
  • comments are -- (two hyphens)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Thu Nov 03, 2005 2:49 am    Post subject: Reply with quote

The stuff I've done can be found here:
http://wolfwiki.anime.net/index.php/User:ReyalP

Note that this is work in progress, with various testing bits still in it, most commented out.
_________________
send lawyers, guns and money
Back to top
View user's profile Send private message
Rookie One



Joined: 02 Nov 2005
Posts: 28
Location: Ruda Slaska, Poland

PostPosted: Sat Nov 05, 2005 5:18 am    Post subject: Reply with quote

Man, that's sweet! Very Happy Gotta try making some funky stuff with it! Smile
_________________
Allied Field Ops I'm a field op! Axis Field Ops

My crappy website
My even crappier DeviantArt profile
My even more crappier (how is this possible?) dmusic profile
Back to top
View user's profile Send private message Visit poster's website
RoadKillPuppy



Joined: 08 Apr 2004
Posts: 207
Location: Belgium!

PostPosted: Sat Nov 05, 2005 11:24 am    Post subject: Reply with quote

Uhu... It ran 3.2.2b3 pretty stable before the lua qagame.

-------- UNRECOVERABLE ERROR --------
This may be due to a bug in etpro
Information to be used in a bug report is being generated:
------------- CUT HERE --------------
Version: etpro 3.2.2
Platform: Linux
Signal: Segmentation violation (11)
Signal code: 1
fault address: 0x276d260
Load addresses:
0x0069d000 /lib/libdl.so.2
0x006a3000 /lib/libm.so.6
0x00572000 /lib/libc.so.6
0x00554000 /lib/ld-linux.so.2
0x00d9a000 /lib/libnss_files.so.2
0x0019e000 /opt/srv/badabing/pb/pbsv.so
0x00c6d000 /lib/libnss_dns.so.2
0x00427000 /lib/libresolv.so.2
0x009ee000 /opt/srv/badabing/pb/pbcls.so
0x00e1e000 /opt/srv/badabing/pb/pbags.so
0x0277b000 /opt/srv/badabing/etpro/qagame.mp.i386.so
EIP: 0276d260
edi:08ee1240 esi:08e97078 ebp:08e9b7f8 esp:bfa6c5ec
eax:08ee1240 ebx:02868a28 ecx:08ec9870 edx:08e9b6fc
stack:
0283020a 08e97078 08e9b6fc 08ee3534 0283b19f 08ee0d10 08ee1220 08e9b6fc
02868a28 08e97078 00000001 07008099 0283f11e 08e97078 08e9b6fc 00000000
00000000 bfa6c850 bfa6c028 bfa6c73c 00696ff4 bfa6c664 bfa6c68c bfa6c70c
005c9675 bfa6c664 0285980c bfa6c738 00000000 00000000 fbad8001 bfa6c859
code:
!! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !!
!! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !! !!
Stack trace:
1 entries
/opt/srv/badabing/etpro/qagame.mp.i386.so[0x27920c2]
------------- CUT HERE --------------
Back to top
View user's profile Send private message Visit poster's website
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sun Nov 06, 2005 1:17 am    Post subject: Reply with quote

were you running any lua mods?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RoadKillPuppy



Joined: 08 Apr 2004
Posts: 207
Location: Belgium!

PostPosted: Sun Nov 06, 2005 4:06 am    Post subject: Reply with quote

Yes, the playsound.lua.
I have 4 crashlogs if needed. 2 of them have these !! !! in the code section, the others have hex-code.
The crashes seems to occur when the first map in the campaign is done and the server is switching to the 2nd map.
Back to top
View user's profile Send private message Visit poster's website
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sun Nov 06, 2005 4:11 am    Post subject: Reply with quote

does it still crash if you don't run the lua mod?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
The Necromancer



Joined: 25 Sep 2004
Posts: 126

PostPosted: Sun Nov 06, 2005 5:41 am    Post subject: Reply with quote

modding Razz
_________________
Hi! I'm a .signature *virus*! Copy me into your ~/.signature to help me spread!
Back to top
View user's profile Send private message Visit poster's website
RoadKillPuppy



Joined: 08 Apr 2004
Posts: 207
Location: Belgium!

PostPosted: Sun Nov 06, 2005 7:20 am    Post subject: Reply with quote

Seems like one of those hard_to_debug problems... I can't crash the server on command so I am now running it with the lua extention but without any loaded modules. Would that help?
Back to top
View user's profile Send private message Visit poster's website
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sun Nov 06, 2005 8:27 am    Post subject: Reply with quote

it would help rule out that the bug is anything but the lua code. eg "downgrading etpro" is exactly the wrong reaction to this problem, simply not running the lua mod is the correct one.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Sun Nov 06, 2005 1:46 pm    Post subject: Reply with quote

FWIW, it isn't hard to crash the server with a misbehaving lua mod.

The lua API allows you to change things at times the gamecode might not expect them to be changed.
_________________
send lawyers, guns and money
Back to top
View user's profile Send private message
RoadKillPuppy



Joined: 08 Apr 2004
Posts: 207
Location: Belgium!

PostPosted: Sun Nov 06, 2005 2:05 pm    Post subject: Reply with quote

It has been stable so far...

Maybe there is smth. wrong with the playsound.lua code, but strange that there are no other reports of server crashes...
Back to top
View user's profile Send private message Visit poster's website
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sun Nov 06, 2005 10:01 pm    Post subject: Reply with quote

do you have something external sending commands to playsound.lua?

can you plz reproduce the crash with the latest build posted here?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    banimod / etpro / ettv forums Forum Index -> ET Pro News All times are GMT - 8 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group