Cubescript tutorial |
by JadeMatrix
on 01/04/2008 18:01, 34 messages, last message: 01/19/2008 23:42, 10022 views, last view: 05/18/2024 11:26 |
|
http://files.filefront.com/jm+cubescript+tutorialzip/;9378112;/fileinfo.html
Five pdfs in a zip, the first four chapters.
I need help/more info/confirmation on the parts in red. All suggestions are welcome.
|
|
Board Index
|
|
#1: .. |
by Drakas
on 01/04/2008 18:19
|
|
What license are you releasing it under?
reply to this message
|
|
#2: Re: .. |
by Drakas
on 01/04/2008 18:21, refers to #1
|
|
You could instead work on it on Wikibooks -> http://en.wikibooks.org/wiki/
reply to this message
|
|
#3: Re: .. |
by JadeMatrix
on 01/04/2008 19:24, refers to #2
|
|
Huh, didn't think about that. Wikibooks sounds like a good idea, though I'd just have stuck it up on the Cube wiki (or gotten someone with the ability to to do it for me). If I need a license, I'd just use my custom one:
"The files included in this directory are © 2007 Joseph "JadeMatrix" Durel. They may only be used and packaged with Cube Engine Games, including all mods, unless otherwise stated in written permission. They must be accompanied by this custom license.
If the files are part of a guide, they may be freely circulated in whole (or in part as long as the whole is clearly referred to) as an introduction to Cube Engine Games and applicable mods."
I just added the second part. But that's the license I've used in sauer stuff recently, because I've never taken the time to learn if any "real" licenses say the same thing.
I'll also look a bit more into wikibooks, and how that works. May just go with that. For now I'll just add mine.
reply to this message
|
|
#4: Re: .. |
by Drakas
on 01/04/2008 23:00, refers to #3
|
|
Sounds pretty restrictive :-P
Wikibooks goes with the GFDL.
reply to this message
|
|
#5: ummm.. |
by Aardappel_
on 01/05/2008 01:12
|
|
we have our own wiki.. that's the perfect place for this kind of stuff (if you want it to have maximum exposure).
reply to this message
|
|
#6: a few notes and corrections |
by Hirato Kirata
on 01/05/2008 01:32
|
|
I'll be quite direct here
For linux you can suggest editors like kate, nano, emacs and vim.
now skipping to the second half, where you do the zoomscripts, you should introduce the people to the if nots, so you could've accomplished the zoomscripts difffereently
Also by looking at the script, it'll only zoom, as you didn't write a different scripts like eg to set it. As the way you invoked it is a command with an argument. so try something like zoomvar = 1 and zoomvar = 0 next time k :)
setzoomvar [alias zoomvar $arg1]
Yours
zoom = [
if (= $zoomvar 1) [
fov 50
zoomvar 0 //sets zoomvar to 0
]
if (= $zoomvar 0) [
fov 100
zoomvar 1 //resets zoomvar to 1
]
]
smaller, and correct
zoom = [
if (= $zoomvar 1) [
fov 50
zoomvar = 0 //sets zoomvar to 0
] [
fov 100
zoomvar = 1 //sets it back to 1
]
]
trust me when I say, I know my cubescript ;)
Third tutorial
miliseconds are 1/1000 of a second, not 1/100, and you appear to lack the alias making = signs in the zooms script AGAIN
newgui zoom [
guititle "Status of the script 'zoom'"
guitext (format "zoomvar currently is %1" $zoomvar)
if (= $zoomvar 1) [
guitext "You are currently zoomed in."
guibutton "Click here to zoom out now." "zoom"
] [
guitext "You are currently zoomed out."
guibutton "Click here to zoom in now." "zoom"
]
]
Note the the (format "blah blah blah %1" $zoomvar) in the above. you use that (along with other commands like concat) to display the value of aliases in the gui.
part 4
modulos is a math argument used to find the remainder, eg (mod 22 7) should return 1
~Hirato Kirata
reply to this message
|
|
#7: .. |
by Drakas
on 01/05/2008 10:05
|
|
Feel free to use my sniping script: http://www.quadropolis.us/node/396 <- Public domain.
reply to this message
|
|
#8: Re: a few notes and corrections |
by JadeMatrix
on 01/06/2008 05:37, refers to #6
|
|
Aard, Drakas: my original intent was to stick it up on the Cube wiki simply as a tutorial, no specific license applied. I guess the discussion kinda sidetracked me. Once I get my email back, I'll make a wikispaces account and add it. Then everyone can correct my newbish scripting to their hearts' content.
Hirato:
Thanks, I'm really no expert on Cubescript, all I can do is write rather creatively. I'll need all the corrections I can get.
I'm working on fixing some errors, so I may have another chapter or two up by the end of the week.
Drakas (again):
Actually, that was the script I used until I discovered rootnis'. Very useful, since it stores the zoomed fov. I may be able to fit it in in a future chapter; the scripts progress as new stuff is taught.
reply to this message
|
|
#9: Re: a few notes and corrections |
by SheeEttin
on 01/06/2008 07:15, refers to #8
|
|
> all I can do is write rather creatively
My method for writing scripts is to write something that seems like it should work, then try it, and fix what doesn't work.
Maybe I should read what you've written... Seems interesting now. :P
reply to this message
|
|
#10: Re: a few notes and corrections |
by Drakas
on 01/06/2008 08:10, refers to #8
|
|
ALWAYS license your work.
Make it explicit.
reply to this message
|
|
#11: Re: a few notes and corrections |
by JadeMatrix
on 01/06/2008 08:26, refers to #9
|
|
I meant creatively-not-in-scripts (aka prose?), unless creativity means writing utterly senseless scripts that may not even work.
Drakas:
I could care less. It's going up on the wiki, where i'll update it, but anyone else can too. I'm just getting the ball rolling. I promise i'll license other stuff, ok?
I shouldn't be up this late. or early. 2:30 am and living on Christmas candy. g'night
reply to this message
|
|
#12: Minor Update |
by JadeMatrix
on 01/09/2008 18:47
|
|
"Minor" update:
http://files.filefront.com/jm+cubescript+tutorial+v01zip/;9406631;/fileinfo.html
reply to this message
|
|
#13: Arrrggh! |
by steve_e
on 01/09/2008 19:45
|
|
I try to download then it tells me that download managers are not supported - so I disable the download manager and it says that I have already downloded the file (which I haven't) and I can not try again unless I go through the whole circus again...
So, unfortunately, I have not been able to to review you work - which I was vey much looking forward to doing. :(
Oooh this is bit more challenging "9 times 9 is..."
reply to this message
|
|
#14: Re: Arrrggh! |
by JadeMatrix
on 01/09/2008 19:56, refers to #13
|
|
Is it an error from filefront?
reply to this message
|
|
#15: Re: Arrrggh! |
by SheeEttin
on 01/10/2008 01:24, refers to #14
|
|
Probably. To put it bluntly, FileFront sucks.
Here it is on Mediafire: http://www.mediafire.com/?7xwln9jggxw
reply to this message
|
|
#16: Re: Arrrggh! |
by demosthenes
on 01/10/2008 01:37, refers to #15
|
|
Mmm, I don't like that host too much either, 'cause it wants me to enable cookies in order to grab the file. :(
reply to this message
|
|
#17: Mediafire |
by steve_e
on 01/10/2008 03:22
|
|
Thanks, SheeEttin - that worked without any dramas at all. Cheers.
reply to this message
|
|
#18: .. |
by JadeMatrix
on 01/10/2008 13:58
|
|
Hmm, then what hosting site should I use from now on? Quadropolis... but I don't think you can upload guides. It's pretty moot now, as I've got access to the wiki, so I should be uploading it in about a week.
reply to this message
|
|
#19: Re: .. |
by JadeMatrix
on 01/11/2008 22:09, refers to #18
|
|
Any suggestions as to where this tutorial should go on the wiki?
reply to this message
|
|
#20: Re: .. |
by Quin
on 01/12/2008 04:12, refers to #19
|
|
Either on a new page entitled "Scripting Tutorial" or, if you think it supercedes the current "Scripting Guide" you could always use that page.
reply to this message
|
|
|
Board Index
|
|