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 Previous  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
Rookie One



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

PostPosted: Thu Nov 10, 2005 3:46 am    Post subject: Reply with quote

Oh, I see. So you cannot spawn things during the game? Sad

<EDIT>I moved the spawning thing to et_InitGame, still the same error:
Code:
********************
ERROR: G_SpawnString() called while not spawning, file g_spawn.c, line 839
********************

I'm using etpro-lua-2. Here's my code:
Code:

function et_InitGame(levelTime, randomSeed, restart)
   -- spawn a dinghy, yay!
   if (et.trap_Cvar_Get("mapname") == "battery") then
      ent = et.G_SpawnGEntityFromSpawnVars("scriptname", "dinghy1", "origin", "2650 600 100", "classname", "misc_gamemodel", "modelscale", "1", "contents", "1", "mins", "-90 -90 -25", "maxs", "90 90 25", "clipmask", "1", "model", "models/mapobjects/dinghy_sd/dinghy.md3")
   end
end

</EDIT>
_________________
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
Rookie One



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

PostPosted: Fri Nov 11, 2005 6:16 am    Post subject: Reply with quote

Erm... Bump?
_________________
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
Deus



Joined: 12 Mar 2004
Posts: 1053
Location: Germany

PostPosted: Fri Nov 11, 2005 6:40 am    Post subject: Reply with quote

why just don't put it in the battery mapscript Rolling Eyes
_________________

http://spielwelt15.monstersgame.net/?ac=vid&vid=39033566
Back to top
View user's profile Send private message Visit poster's website
Rookie One



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

PostPosted: Fri Nov 11, 2005 7:39 am    Post subject: Reply with quote

This is just for test purposes, I want to practise spawning via the Lua scripts.
_________________
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
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Fri Nov 11, 2005 10:50 am    Post subject: Reply with quote

Rookie One wrote:
Erm... Bump?


zinx needs to fix this Allied Medic
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rookie One



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

PostPosted: Fri Nov 11, 2005 11:48 am    Post subject: Reply with quote

So this is a bug, right?

I've got one more question about the et.gentity_get and et.gentity_set functions. How do I access structs within the gentity_s struct? Like, how do I mess with ent->r or ent->client stuff? scratch head Allied Engineer
_________________
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
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Fri Nov 11, 2005 3:43 pm    Post subject: Reply with quote

Rookie One wrote:

I've got one more question about the et.gentity_get and et.gentity_set functions. How do I access structs within the gentity_s struct? Like, how do I mess with ent->r or ent->client stuff? scratch head Allied Engineer

You can only access fields for which access has explicitly been given (which is not yet documented). I suspect it follows closely with the ones listed here:
http://wolfwiki.anime.net/index.php/Map_scripting

Maybe more will be added at a later date. It isn't that hard to make generic wrappers for simple C datatypes and provide access to the structs as tables in lua, but it is much better done on the C side (the alternative would be to provide the entire entire struct as a lua 'string' and write all the access functions on the lua side, but that's ugly...).
_________________
send lawyers, guns and money
Back to top
View user's profile Send private message
=FF=im2good4u



Joined: 05 Feb 2003
Posts: 3924
Location: The Netherlands, HOLLAND

PostPosted: Sat Nov 12, 2005 2:18 am    Post subject: Reply with quote

well i dont se any entity things in your url but i asked it also and it apaered many of the entity_get where not added yet like the netire client isnt added
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Rookie One



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

PostPosted: Sat Nov 12, 2005 2:55 am    Post subject: Reply with quote

I made that Wiki article. Wink

So, I cannot move spawned ents or check players' teams yet? Sad

Can we get this documented? Allied Soldier
_________________
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
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sat Nov 12, 2005 3:25 am    Post subject: Reply with quote

you can get players teams from the userinfo string.

vectors are currently busted, so you can't use them yet in setentity.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rookie One



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

PostPosted: Sat Nov 12, 2005 10:37 am    Post subject: Reply with quote

OK, thanks. Please note us if you get them working. 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
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sat Nov 12, 2005 4:52 pm    Post subject: Reply with quote

Rookie One wrote:
If I could only make a request I'd like to be able to access the level struct. Smile


which fields?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ouroboro



Joined: 26 Jul 2004
Posts: 662

PostPosted: Sat Nov 12, 2005 10:51 pm    Post subject: Reply with quote

i just wanna know wtf an ignorant client/player can do with this stuff? i assume nothing, right? tell me i don't need to care so i can stop trying to understand wtf lua is Embarassed
Back to top
View user's profile Send private message
Lagger



Joined: 29 Sep 2003
Posts: 333

PostPosted: Sat Nov 12, 2005 11:53 pm    Post subject: Reply with quote

dear ourobobo, my favorite forum troll, you don't need to care.
Back to top
View user's profile Send private message
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Sat Nov 12, 2005 11:59 pm    Post subject: Reply with quote

this is all purely serverside. clients can't do a single thing with it.
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 Previous  1, 2, 3, 4, 5  Next
Page 3 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