Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Box Maker Beta

Author
Message
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 05:32
Hi

I've just been coding this small program
I know it's VERY basic, and you may not consider this as a serious Subject, but this little piece of code might turn into something usefull Or not...
But check it out anyways. I might work a little on it tomorrow.

Here's the code:



Any comments, good or bad, will be highly appreciated
I haven't tested it yet, so there might be some bugs, I don't know...
And if this is the wrong forum, then tell me.

KLU 007

jwurmz
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 8th Mar 2005 07:27 Edited at: 8th Mar 2005 07:28
it ran fine for me. i almost died of anticipation waiting to find out how my box was going to turn out.... maybe cut down those wait statements a little

what exactly were you going to use this for?

"Creativity is knowing how to hide your sources" - Einstein
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 8th Mar 2005 08:22
We all need a box from time to time.
renny
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 8th Mar 2005 09:43
Ok you actually made us see "Loading..." while it wasn't loading!? People like you should be thrown into a pit.

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Final Epsilon
20
Years of Service
User Offline
Joined: 26th Jan 2004
Location: CA, USA
Posted: 8th Mar 2005 11:59
It heightens the excitement for seeing our personal box. ^_^

We should also be able to name the box as well.
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 8th Mar 2005 12:58
You are using goSubs...you should change those to goTo's so people don't get confused and swear at you tomorow. It's cute! I want a little box name Fluffy that can walk around in a hilly matrix colored GREEN with TREES and little gold COINS that I can pick up!

(Hope you got the suggestion)

www.war3forums.net
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 20:31
@jwurms:

I'll cut down the waiting then
I'm going to see how this program turns out, no plans yet.

@Sadsack:

yes we do

@Travis P:

Listen to Final Epsilon! He's completely right.

@Final Epsilon:

That's going to be featured in an update then

@Death Stalker:

I get it
I will work on that one!

Wow, lots of thanks to all of you! All those comments and suggestions will help me a lot
I'm going to update the code to remove the long waiting time (people should not be kept away from their new boxes for too long ).
When that's done, I'll be working on the new features for a while.

Thanks

KLU 007

Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 22:10 Edited at: 8th Mar 2005 22:44
Here you go.
A little update, where some of the waiting is cut out, and you are now able to save your box
You can only have one saved box at a time, but I'll look a bit more into this in a while.
Now, I'm going to work a bit on the editing of the box, maybe make you able to move it around, and save its position. And I might make you able to make more boxes and other primitives at once, and save all of it, and then maybe make this into my first, simple level editor!

I don't know if it'll work, but I'm gonna give it a shot.

Here's the code:



Hope you like it.
Tell me if there's any errors or bugs, it's not that well tested yet...


KLU 007

[EDIT] Updated the code to make it faster. I've removed a lot of the waiting time. And now you can control your box araound with the arrowkeys.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 8th Mar 2005 23:19
Quote: "You are using goSubs...you should change those to goTo's so people don't get confused and swear at you tomorow"




Send him down, throw away the key!!!!!

BatVink
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 23:21
Me?

What's so bad about GoSubs???

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 8th Mar 2005 23:26
My little box is almost cute.

You are not alone.
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 23:48 Edited at: 8th Mar 2005 23:51


Now you can move the box around, AND save it's position by pressing "S" while moving the box around. Next time you run the program and load your box, then Box Maker will position your box in the position where you left it! (if you've saved it )




KLU 007

P.S. I don't know what you have against GoSubs, but now I've replaced them all with GoTos instead. Happy?

vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 10th Mar 2005 11:01
Hay KLU 007 i could add onto this game you could make your box and then play my box fighting game with the box you have created.. check it out in code snippets its called "2 Player ghost game" you can take my code if you want and add it to your code
peace

David
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 11th Mar 2005 00:28
Thanks, I'll look into it
Sounds like a cool idea


The site's up again: [href]www.panzergames.tekhawk.com[/href]
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 24th Mar 2005 04:02
Lol Dacid always says peace, I've noticed it lately.

Good job on the prog, simple but cool.

ROB: "In todays news, the new tamagochi...chi..chi chi BOX is out! You create a box, feed the box, train the box, fight with your box...and whats more, you can evolve into a CUBE! And from there, who knows whats left. On to you, Anna?"
ANNA: "And on a sidenote some tornado is heading this way, but MORE ON THE BOXY!"

Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 24th Mar 2005 04:40
One thing,lol i tryed not to save the box and it save for me???? one bug/problem

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 24th Mar 2005 05:18
you can't delete a file that doesn't exist, that's why i can't save my box (noooooooooo...). and last but not least: add the sync on command and save me a headache...

keep up the good work!!!
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 24th Mar 2005 07:08
I haven't actually played this yet but I looked at the code, and I think it's possible to make a cube with no size....

I think should be

Thus checking if the size is less than OR equal to 0...Ill check if Im right.

fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 24th Mar 2005 08:47
One thing, don't make the matrix anything that has to do w/ the box i.e: make matrix 1, objsx,objsz,objsx/10,objsz/10
position matrix 1, -(objsx/2),-objsy,-(objsz/2)

www.war3forums.net

A.K.A Death Stalker
Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 25th Mar 2005 20:45
I have made some changes to your first code of the box maker and now instead of coloring it texturises it, you can choose
Here it is

P.S - You have to download the zip attached

Attachments

Login to view attachments
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 27th Mar 2005 00:47
nooo :-(
i cant use it I DO NOT HAVE A C: DRIVE
and proof attached
do not ever use a static path why dont u just use box.box or something instead of C:\box.box

X-Patch x-patch.exe(gui):75% make.exe:5% x-patch.dll(runtime dll):0% developed on win xp home sp2

Login to post a reply

Server time is: 2024-11-23 14:34:03
Your offset time is: 2024-11-23 14:34:03