-
i am making a map editor for a game, and everything's fine, except on the save part. I was going to save to a file with the tile number + the info i need. to do this i went:
On (Release)
Set Variable: "n" = "1"
Set Variable: "filename" = filename&".map"
Loop While (n <> 50)
Set Variable: "name" = "/grid/"&n
Set Variable: "info" = n&"="&GetProperty ( name, _currentframe)
Set Variable: "tilevar" = tilevar&chr(13)&info
Set Variable: "n" = n+1
End Loop
FS Command ("exec", "command.com"&Chr(9)&"/c"&Chr(9)&"echo"&Chr(9)&"text3="&tilevar&">c:\maps \"&filename)
End On
For some reason this does not work, and the weird thing is, when i change the "tilevar" variable in the FS Command to a variable that does not exist, like "Hi", then it will save the file. This is really weird. If anyone can help pls reply.
-
Well, I haven't tried to learn FS Commands yet, but it seems like the problem has something to do with the carriage returns in tilevar... Try using something besides newlines to separate the tiles... Pick any character that won't appear in it, and use that as a delimiter...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|