Author Topic: Some reference scripts  (Read 6316 times)

Then why not just release the scripts themselves? Don't package them, just post them up somewhere for reference.

Please do not attempt to run these as is unless you know what you're doing and understand the code, since none of these are idiot-proofed. Also, do not release any of these, because they are not designed to be add-ons, and will not work right, despite your attempts to package them. If you want to incorporate anything into a script/mod of your own, feel free to do so as long as proper credit is given and a significant portion of the entire script/mod is your own code.



Torquescript:
- Maze Generator (Builds a randomly generated maze with client-sided functions)
- Dungeon Generator (Builds a randomly generated dungeon with server-sided functions)
- XML Import + Export (Imports and exports XML files using an object-based system)
- Basic Webserver (Support for $GET variables and <?tqs ?> tags. Example page here.)
- base64 Conversion (Converts text to base64. Also includes my convertBase function.)

Blockland-related:
- Heightmap2BLS (Converts a heightmap into a Blockland save file using "cubescape")



I think those are the latest versions of each, but tell me if you find any errors just incase.
« Last Edit: November 16, 2010, 04:12:08 PM by Truce »

These are very nice indeed.

Yes looks pretty good. But i wont be needing any of them.

I would love to use the Heightmap one. But I have no ideea how




FUUUUUUUUUUUU---

Is
Quote
This is a Blockland save file.  You probably shouldn't modify it cause you'll screw it up.
a required part of the file?
I know it's in there by default, but is it required to have it read correctly?

Isa required part of the file?
I know it's in there by default, but is it required to have it read correctly?

Blockland will load saves that have different text on that line, but some add-ons check for that exact text.

Mind , Packaging them, I would like these but i have no EXP.

Thank you very much Truce. <3
Mind , Packaging them, I would like these but i have no EXP.
These are scripts he made but never fully finished (sorta).
These are not fool-proof as he says in the OP and he will not make it into an usable add-on.
He just releases the scripts so that scripters look at how he did it and how it works.

I will look at it for sure.
There are some interesting things in there.

do you still have your script that could dig in bricks?

I'll explain: you put a 64x brick. somewhere IN the 64x brick, you put the ghost of a 4x brick. then you spawn the 4x brick, and it delete the area where the 4x brick was..

I think you named it Terrain mod or something like that

do you still have your script that could dig in bricks?

I'll explain: you put a 64x brick. somewhere IN the 64x brick, you put the ghost of a 4x brick. then you spawn the 4x brick, and it delete the area where the 4x brick was..

I think you named it Terrain mod or something like that
That would be cool (and usefull).


Image2Preview has some php errors
you should fix them

Image2Preview has some php errors
you should fix them

Please do not attempt to run these as is unless you know what you're doing and understand the code, since none of these are idiot-proofed.

I've removed the Image2Preview link - I'm not too keen on seeing more abuse of the preview feature.

I've removed the Image2Preview link - I'm not too keen on seeing more abuse of the preview feature.

Alright. Half of me was hoping anyone who figured out exactly what to do would know the possibility of being blocked from the server previewer, but I removed the file from pasteHTML anyway incase someone bookmarked the link.

I've replaced it with a basic webserver script I had written awhile ago to test things. It doesn't have support for POST, nor does it parse the header variables, but I haven't needed to add those yet. Obviously if someone wanted to turn it into a full blown webserver, they'd have to add those (easy to do) and the 5000 error codes HTTP has. In its current state, it has a lot of things it could be used for, such as displaying hiscores or general server info, and all the user has to do is connect to your server's IP in their web browser.