|
| 10 Sep 2011 04:33 PM |
[I originally posted this in the scripting helpers forum at PostID=54553813, but perhaps it belongs here.]
Data Persistence is great, but as far as I can tell, it is not possible to load data into a place from another place, like loading your creation from "Welcome to ROBLOX Building" into your own level. However, since the TeleportService allows sending to a specified spawn, it occured to me that this might be able to be used to transfer data between games with the player. Thus, data teleportation.
For example, if a person has 2 related levels, both with a leveling system up to 80, then 80 specially named spawns could be added to each level, the TeleportToSpawnByName function bases the spawn name on the player's level, and the spawn assigns the level to the player entering via teleportation. This would not be very complicated for proficient scripters, but I want to go further, and thus need help.
What I would like to do, if it is possible, is transfer more data using the spawn name than would be practical to add spawns for. For simplicity, I will use the example of money, though if it is possible, then much more is also possible using the same method. So, the TeleportToSpawnByName function can be set up to assign the spawn name, but what about on the receiving end? How, if at all, can a script in the level being teleported reference the spawn name value being transferred, without there being a spawn in the level with that name, before the player spawns? Or to ask in another way, what is the referencing needed in the script to copy the SpawnName value into an object value or string, to be saved in the Player (or PlayerGUI)? The object value or string could then be used to give the player the same amount of money (etc.) as in the level being teleported from. Basically, to use anology, the data saving function of teleportation is documented in the wiki, but the data loading function is not, which is the missing piece of the puzzle that I need.
If this works, it would open up new possiblities for games; though it would, of course, still be limited to where both the sending and receiving games are designed for it. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 04:36 PM |
TL;DR
First paragraph made sense. But you'd need A LOT of spawn names. Only usable to say, send a bool value as a string, and parse it as a bool. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 04:37 PM |
| For this, you are better off with the old fashion way, save/load codes |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 04:38 PM |
| @Donny: Yeah, but users will have to remember it. And we all know that most people won't even bother remembering 10 character long strings. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Sep 2011 04:52 PM |
| @The. Thats why there is notepad in windows OS :D |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 04:57 PM |
| Notepad's nooby, cuz I use System32/edit.com |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 10 Sep 2011 04:59 PM |
| That's why I use Word Pad. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Sep 2011 05:00 PM |
| Did i said that i use it? :o |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 05:01 PM |
edit.com > notepad.exe
lrn2nerd |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Sep 2011 05:02 PM |
| I BETTA USE MY MEMORY FOOO |
|
|
| Report Abuse |
|
|
zeke181
|
  |
| Joined: 15 Mar 2011 |
| Total Posts: 34 |
|
| |
|
| |
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 10 Sep 2011 06:23 PM |
Every text editing software you can think of > notepad
~ pwnedu46 ~ |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 06:23 PM |
| This reminds me of RoNet, trying to figure out how to get data through by using 5 numbers between 1 and like 20. :P |
|
|
| Report Abuse |
|
|
GoldenUrg
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 6428 |
|
|
| 11 Sep 2011 12:00 AM |
Why don't you download the game script that handles the teleport in (assuming there is one) and see how it gets the spawn name?
|
|
|
| Report Abuse |
|
|
|
| 16 Sep 2011 11:29 PM |
| How would I download the game script being used (a CoreScript, it seems)? Would this simply require file diving, or would it require some form of hacking? |
|
|
| Report Abuse |
|
|
| |
|
GoldenUrg
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 6428 |
|
|
| 17 Sep 2011 11:49 AM |
| Just about everything requires some form of hacking. The game just doesn't have that much official functionality. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 11:55 AM |
| They should make it be able to load from another place, but not save. |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 17 Sep 2011 12:06 PM |
Actually notepad > every other text editor.
You don't need anything else than write text now, do you? |
|
|
| Report Abuse |
|
|