home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


General Thread

by Aardappel on 01/05/2002 01:55, 15527 messages, last message: 03/01/2024 13:02, 11449760 views, last view: 05/18/2024 11:32

for questions, announcements etc.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#13237: cubescript quine

by Nixot on 07/22/2010 20:03

I decided to make a quine in cubescript. For those who don't know, a quine is a program that prints its own source code.

Type this into the Cube console:
alias quine [ concat "alias quine [" $quine "]; quine"; echo $s ]; quine

reply to this message

#13238: Re: cubescript quine

by Q009 on 07/22/2010 20:08, refers to #13237

thats in sauer already... ._.
data/stdlib.cfg:

quine = [ echo (format "quine = [%1]" $quine) ]

reply to this message

#13239: Re: How do I save games?

by SheeEttin on 07/22/2010 21:27, refers to #13236

If you're mapping, use checkpoints.
If you're playing, no.

reply to this message

#13240: Re: cubescript quine

by Nixot on 07/22/2010 22:02, refers to #13238

That won't print anything, and this isn't a quine.
Do you mean:
quine = [echo (format "quine = [%1]; quine" $quine)]; quine

reply to this message

#13241: Re: cubescript quine

by Q009 on 07/22/2010 23:56, refers to #13240

dude...
im just showing you that function is already in Sauer....

reply to this message

#13242: Server options?

by snuggles{m00} on 07/23/2010 01:34

Hey I am the host of the m00c0w clan server that generally has mostly coop edit at any given time. Anyway, I was wondering of any good known scripts or ways to do a little more on a personal server. I was hoping to maybe do a message that would pop up every once in awhile kind of like on garrys mod servers. This being said I just want people to be able to know how to get to our website and other general info maybe even to just show up just as they come in as a one time thing. Can anyone help with server tools?

reply to this message

#13243: Re: Server options?

by Nixot on 07/23/2010 11:21, refers to #13242

You could use Hopmod, a server mod. I've never used it, but it looks like it's a modified binary that you can run as a server and send messages to people.

Here is the link: http://code.google.com/p/hopmod/

reply to this message

#13244: Re: cubescript quine

by Nixot on 07/23/2010 11:22, refers to #13241

And I'm showing you that it was done wrongly.

reply to this message

#13245: Re: cubescript quine

by Razgriz on 07/23/2010 12:37, refers to #13244

i prefer a quine that works for other commands and not only its self

quine2 = [if $numargs [echo (format "%1 = [%2]" $arg1 $@arg1)]]

reply to this message

#13246: Re: cubescript quine

by Q009 on 07/23/2010 17:11, refers to #13244

dont show me but eihrul then :P

reply to this message

#13247: Re: cubescript quine

by Quin on 07/24/2010 00:22, refers to #13240

http://en.wikipedia.org/wiki/Quine_%28computing%29

"In computing, a quine is a computer program which produces a copy of its own source code as its only output."

"A quine takes no input. Allowing input would permit the source code to be fed to the program via the keyboard, opening the source file of the program, and similar mechanisms."

Now, enough arguing about stupid shit.

reply to this message

#13248: Re: cubescript quine

by Nixot on 07/24/2010 15:11, refers to #13247

Coming soon: 99 bottles of beer script!

reply to this message

#13249: edittoggle in Justice

by grg3 on 07/24/2010 15:47

I downloaded and installed the new version of Sauerbraten on my Ubuntu machine. Everything seems to work great except I can't start edit mode from single player mode.

When I press the "E" key it gives me the message "You must hold key to toggle editing ins single player modes".

I have checked my cfg files and they all have "E" configured for edittoggle. /edittoggle gives the same message as "E".

Any ideas what I am doing wrong? Thanks!

reply to this message

#13250: Re: edittoggle in Justice

by eihrul on 07/24/2010 16:27, refers to #13249

You will need to remove the old ~/.sauerbraten/config.cfg you have, which will allow some new default key binds to be set up.

reply to this message

#13251: Re: cubescript quine

by SheeEttin on 07/24/2010 21:27, refers to #13248

http://sauerbraten.org/docs/config.html#format ;)

reply to this message

#13252: Re: cubescript quine

by Nixot on 07/26/2010 11:04, refers to #13251

Yes but you can use "echo" in the same way and simply substitute in the values, plus you can use more than nine variables.

reply to this message

#13253: Re: edittoggle in Justice

by grg3 on 07/26/2010 17:09, refers to #13250

Thanks! I tried that but I still get the same message when trying to edittoggle.

reply to this message

#13254: Re: edittoggle in Justice

by eihrul on 07/26/2010 17:23, refers to #13253

bind LCTRL "allowspedit"
bind RCTRL "allowspedit"

reply to this message

#13255: Fan wiki

by MushroomQuillrForumFats on 07/27/2010 17:36

I have built a wiki for Cube 2: Sauerbraten at http://sauerbraten.wikia.com/wiki/Cube_2:_Sauerbraten_Wiki.
It is not meant to replace the other wiki, but rather be a fan supported wiki about things in sauerbraten, like maps, weapons, player models, universe, etc.
I would like to recieve official recognition by the Sauerbraten community.
I love sauerbraten and want to make it better.
-MQFF

reply to this message

#13256: Re: Fan wiki

by SheeEttin on 07/27/2010 20:40, refers to #13255

Been there, done that...
http://cube.wikia.com/wiki/Cube_1_and_2_Wiki

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Post a Message

Username

Email

Subject

Body

8 times 8 =


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54035546 visitors requested 71815504 pages
page created in 0.273 seconds using 9 queries
hosted by Boost Digital