General Thread |
by Aardappel
on 01/05/2002 01:55, 15499 messages, last message: 12/08/2021 21:22, 8826155 views, last view: 12/09/2021 02:41 |
 |
|
for questions, announcements etc.
|
 |
|

Board Index

|
 |
#8941: Re: quick scripting ques. |
|
by MeatROme
on 09/01/2007 22:49, refers to #8940
|
 |
|
Ah, now I get it - you weren't so elaborate in your email question.
Well - for one thing.
I think your wasting energy on this;
if a map-configuration holds fog and a user doesn't want to see it ... you will not be able to stop him with some simple cubescripting - he can just disable your script ... or rather (ATM) never even install it.
Your loop/sleep combo doesn't make any sense - that's why it's not working.
Eliminate the loop-over-one (useless anyway) and simply add a call to "self" inside the sleep block - then it will repeatedly call itself ... the principal is the same as with the small snippets we exchanged in our emails.
Like so:
lop = [ echo looping; sleep 3000 [lop]]
lop
The first line defines the alias - including a call to itself in the sleep block ... the second kicks off the looping by doing the initial call.
So - welcome to the world of CubeScript - endless fun guaranteed ;)
But again: don't waste energy constricting the freedom of choice that is such a fantastic hallmark of the Cube based games and it's scripting capabilities!
reply to this message
|
 |
#8942: Re: quick scripting ques. |
|
by shadow,516
on 09/01/2007 22:51, refers to #8940
|
 |
|
LOL
That was my script from forever ago, (like back in the cube days). I can't believe you found that
reply to this message
|
 |
#8943: Re: quick scripting ques. |
|
by Drakas
on 09/01/2007 23:01, refers to #8940
|
 |
|
#73 ?! that's like.... OLD!
reply to this message
|
 |
#8944: Re: quick scripting ques. |
|
by shadow,516
on 09/01/2007 23:07, refers to #8943
|
 |
|
God, I'm so embarrassed of my old stuff.
LOL
reply to this message
|
 |
#8945: Message censored by administrator |
|
by Some guy on Mars
on 09/02/2007 01:13
|
 |
 |
#8946: Re: Sauerbraten |
|
by w4 ¿?¿?¿
on 09/02/2007 01:24, refers to #8945
|
 |
|
/sensitivity xxxx
xxxx=desired number, default is 10
as for sound/models just convert and drop them in if you can acutally handle that with your level of intelligence.
thank you come again
reply to this message
|
 |
#8947: Re: Sauerbraten |
|
by Acord
on 09/02/2007 01:48, refers to #8946
|
 |
|
Mouse sensitivity menu slider. You wouldn't even have to bust into the code to implement that.
reply to this message
|
 |
#8948: Re: quick scripting ques. |
|
by JadeMatrix
on 09/02/2007 04:19, refers to #8941
|
 |
|
It's actually just a personal exercise to help me learn cubescript. So I'm not really wasting my time.
And the only reason I came across the original was because I heard it mentioned in the comments a recent script on quadropolis.
Anyways, so you can't repeat and keep the argument value? I had tried the self-call, which worked fine. But I wanted the setup to be 'permafog X Y Z'.
reply to this message
|
 |
#8949: driAllocateTexture 636 |
|
by LeOuf3
on 09/02/2007 16:44
|
 |
|
"could nor allocate texture"
This problem is new on some maps (face, etc...). Is there a solution to solve it (linux, intel 945) ?
Thanks
reply to this message
|
 |
#8950: Re: quick scripting ques. |
|
by MeatROme
on 09/02/2007 18:12, refers to #8948
|
 |
|
Heh, okay - just as long as your aware of the fruitlessness of your current work ;)
Again I'm a little unsure as to what exactly you want to be passing along.
The first idea that'd come to mind is :
global variables.
E.g.:
_my_val_x = 42
my_alias = [if (= $_my_val_x 42) [echo the answer] [echo try again]]
Or you work with "@" to reference variables higher up on the stack ... but this is only seldom necessary in my experience. See the documentation, original scripts included and you might want to try out QCSP too to see how these constructs might be useful.
Basically:
value = 42
out_value = [ value = 1; echo @value ]
reply to this message
|
 |
#8951: QCSP |
|
by MeatROme
on 09/02/2007 18:14
|
 |
|
Oh ... typo : your => you're
and forgot the link to QCSP:
http://www.quadropolis.us/node/435
reply to this message
|
 |
#8952: own server |
|
by VivOo
on 09/02/2007 19:49
|
 |
|
how to make a server for me and my friends with a password?
reply to this message
|
 |
#8953: Re: own server |
|
by MeatROme
on 09/02/2007 20:51, refers to #8952
|
 |
|
RTFM!
I'd suggest you simply don't register on the masterserver - to do this add this
-mlocalhost
parameter to your call creating the server. Then all your friends will have to do is know your IP and either manually enter
/connect 123.123.123.123
into their game console
or even add a line
addserver 123.123.123.123
to their servers.cfg to see it in their serverbrowser right away - a connect will write it in there too BTW.
There is no connection password capability for Sauerbraten - the password parameters are only for overriding masters if you know the servers admin-password.
HTH
reply to this message
|
 |
#8954: Help please |
|
by MrDerby
on 09/02/2007 22:25
|
 |
|
Hi All..
I am new to the Linux community. I have read the documentation and still can not find why I receive this feed back when trying to execute.
"error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such files or directory"
I followed the instructions as posted "gunzip, chmod +X, ./saurbraten_unix" Still no good.. A program File Roller was used once as well." Files were extracted to /Documents/usr/lib
Any advise would be a help
Thank you
Joe
reply to this message
|
 |
#8955: .. |
|
by eihrul
on 09/02/2007 22:39
|
 |
|
You need to install the SDL, SDL_image, and SDL_mixer libraries (note: 3 diff libraries), but this process will vary depending on your Linux distribution.
reply to this message
|
 |
#8956: RE: HELP |
|
by MrDerby
on 09/03/2007 01:59
|
 |
|
Thank you Eihrul.
Currently I used SuSE 10.1
Not to change the nature of this thread but do you recommend this distro for a beginner such as myself?
reply to this message
|
 |
#8957: Cube 1 editing question: Lightswitch |
|
by Tennessee Cliffy
on 09/03/2007 08:14
|
 |
|
First time poster here. Howdy.
I'm trying to make a very basic lightswitch setup in cube one. First I used the trigger to turn walls into spaces, but the light entities still shown through the walls quite a bit, such that the effect (even after the scripted recalc) was noticable, but not impressive.
next I tried to make the switch create three light entities. I used the select function to pick a square, then NEWENTed a light, then selected the next square, etc.. etc... . Now when I flip the switch it gives me three "edit mode only" messages (I assume it means I can only make selections in edit mode, but the newents don't seem to be doing anything either.
Here's the code for the trigger, from the map cfg file.
alias level_trigger_1 "echo Lights On!; select 39 81 1 1; newent light 12 192; select 39 74 1 1; newent light 12 192; select 39 66 1 1; newent light 12 192; recalc"
I have considered adding an EDITTOGGLE command at the beginning and end, but I believe that that will just reset the switch when it makes editmode end.
So, any advice/ideas/admonishments? I'm a fairly new mapper and could use the help.
Thanks in advance
reply to this message
|
 |
#8958: Re: Cube 1 editing question: Lightswitch |
|
by MeatROme
on 09/03/2007 08:28, refers to #8957
|
 |
|
Correct - and monsters will be replaced too; turning lights on/off can't be done - not even in Sauerbraten (Cube 2) ... the way I went in "4 Bases" [map #2] was to simply double the geometry;
I have an unlit base where you start off, do some stuff that alerts the monsters and you battle them in the lighted version - it's all inside one map (.ogz) - you simply get teleported from one to the other while following the mission objectives.
In Sauerbraten I simply placed the first part in the upper part of the octree and hide it from view with a skybox delimiter inside the bottom half, you're bound to come up with something for Cube 1 too ;)
reply to this message
|
 |
#8959: Re: Cube 1 editing question: Lightswitch |
|
by Tennessee Cliffy
on 09/03/2007 08:42, refers to #8958
|
 |
|
Thanks! I feel weird talking to a "real mapper". It's like I just met ringo or something...
Neat workaround, although the effect I'm looking for is that immediate "Now it is bright in here" feeling.
Maybe If I thicken the walls more as I originally had done, I can mitigate the frustrating "light shines through solid walls" effect somewhat...
Okay, while I'm on it... is there any way to mitigate the frustrating blah blah blah???
reply to this message
|
 |
#8960: .. |
|
by djGentoo
on 09/03/2007 08:52
|
 |
|
I\'d personally recommend PCLinuxOS. It\'s i586-optimized (read: FAST), easy to use, and comes with a complete system out of the box. If you\'re sticking with SuSE (which is, no offense, a bit bloated), then I\'d recommend an upgrade. 10.1 was a horrible release from my experience, but 10.2 is better, and 10.3 is due out in about a month. ;) So look into it.
PS: They changed their name (*again*) to openSUSE after 10.2.
reply to this message
|
 |
 |
|

Board Index

|
 |