Any tutorial how to use adv. dup. teleporter?


Ouh, thought that somebody would ask. Was to lazy to make one until now.
Well, i'll see if i can do one (shouldn't be not that hard) and then post it here
EDIT:
Tutorial for the Adv. Dupe. Teleporter:
I have to admit that this device has pretty many In/Outputs, so i make a list of them, and explain what they do.
Inputs
Outputs
- "Read Entity" (This inputs makes the Device read in a constraption. It works similar as the right click with normal adv. dupe.)
- "Serialise Entity" (If you trigger this input, the device will convert the scanned constraption to a string, which is then splitted into blocks. You will not see any physical effect or anything)
- "Piece Size" (This says how big the blocks created be the Serialise function will be (in Bytes). But keep in mind, that if you want to transfer blocks with the WSR, you should use smaller blocks (like 128/256))
- "Start Data Sending" (I think you can guess what it does
)
- "Data Input":STRING (This is where you connect a "Data Output" from another Teleporter to, to receive the serialised Data)
- "Deserialise Input" (After you received all the Data, you have to trigger this to make the scanned and serialised data spawnable again)
- "Spawn Entity" (If you successfully received and deserialised data, you can spawn the Entity)
- "Clear Input" (With this you can clear the data you received)
- "Entity Scaned" (After you scanned/read an Entity, this will output 1, otherwise 0
- "Entity Serialised" (This will go to 1 after you serialised the Entity)
- "Data Output":STRING (This is where the serialised data blocks go out
. Has to be connected to an "Data Input" to make any sense)
- "Sending" (This is 1 while the device send the data blocks, otherwise 0)
- "Receiving" (Same as "Sending")
- "Serialised Output Block Count" (This is how many blocks your serialised data has)
- "Serialised Input Block Count" (This is how many blocks the data you're just receiving has)
- "Blocks Sended" (While the sending process, this outputs how many Blocks are already sent to the other device)
- "Blocks Received" (same as "Blocks Sended", but for receiving)
- "Deserialisable Input Available" (After successfully receiving this turns to 1, means you can deserialise something)
- "Spawn Available" (After successfully deserialising this turns to 1)
I hope i forgot nothing, and i think with this you can easily understand how it works. For those who just want to use it, without understanding it, i attached an Adv. Dupe. (Normal one) file, which contains an easy teleporter platform.
Last edited by Free Fall; 05-30-2008 at 04:26 AM.
Needz moar Lua
How can I use this to send commands from a web server into gmod? I would like to be able to control a contraption using a web interface...


For that you would need an extra programm, because the WSR itself doesn't support Web-access now.
That would be a task for TCP, what is kinda hard to code.
Or you would have to code your own thingy, which opens a web interface, and then converts your inputs to UDP-packets for the WSR.
Maybe, if i have time and figured out how TCP works (it didn't work until now) i could try to code a web interface. But this won't be an easy task, unless i would have to learn HTML and so on too.....
Needz moar Lua
Arg.. The problem is I'm pretty experienced in PHP and HTML but I've got nothing with complicated LUA...
LUA isn't too complicated.
Just learn the simple structure of code, then learn what the commands are.
It's basic math is what it is.
(By "basic" I mean harder than Gr9 Applied math...)
If it's easier than learning C++ I'll be fine...
Gr9 Applied math, I did that in Gr7... (Set 1 Extension Class)
*Goes to fetch old maths books from attic.*


Lua is MUCH easier than C++, especially, because you don't need to give variables a type and so on.
So, if you have some time (not like me, school exams and so on) you should look over some addon-lua-codes and learn from them.
And if you only learn to copy and paste the right code; You learned it!![]()
Needz moar Lua
OK, Thanks!
Arg... I've got exams starting in 2 weeks![]()
Bookmarks