www.ClassicTW.com
https://mail.black-squirrel.com/

A QUESTION ABOUT CSV USE
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21640
Page 1 of 1

Author:  Yop_Solo [ Fri Mar 06, 2009 11:44 pm ]
Post subject:  A QUESTION ABOUT CSV USE

Hi,

I used a CSV :

My Main run a module Datataker. Datataker save is var $AlienName then return to the main.ts .
The main.ts run an second module, in my second module, Can I use the var $Datataker~AlienName ?

I'm really jam... if I cannot use it.. i will need change my script such as write all data in a temp file or put all my second module in my main.ts ...

So before that, i will really need if it's possible or not.

Thanks.

Author:  Singularity [ Sat Mar 07, 2009 12:34 am ]
Post subject:  Re: A QUESTION ABOUT CSV USE

Well yea, you can if you know how to address it. Why don't you just test this stuff and see? :)

Author:  LoneStar [ Sat Mar 07, 2009 9:22 am ]
Post subject:  Re: A QUESTION ABOUT CSV USE

I'm scratching my chin.. Topic subject is about CSV USE, and the message is about setting a variable??

1 - DataTaker can SAVEVAR $AlienName, and another routine can LOADVAR $AlienName.

2 - If your passing values between subroutines you should have the calling routine (in your case the Main), pass variables.


You should spend some time studying the scripts that accompany TWX Proxy. They make extensive use of Includes and variable passing. Those scripts are well documented.

Author:  Singularity [ Sat Mar 07, 2009 12:20 pm ]
Post subject:  Re: A QUESTION ABOUT CSV USE

Yeh, a bit confusing. Non-native english I'm guessing.

If your module is an include you can reference it like the above. If it's loaded via "load" then you need the saveVar/loadVar thing.

Mostly tho you're going to run into a situation where people aren't entirely sure of what you're asking, which means at some point you'll just need to test stuff for yourself.

Author:  Promethius [ Sat Mar 07, 2009 2:38 pm ]
Post subject:  Re: A QUESTION ABOUT CSV USE

Singularity wrote:
Well yea, you can if you know how to address it. Why don't you just test this stuff and see? :)


While I've learned a lot in the forums and talking to different people, I've learned an awful lot on trial and errors (and getting SD from them). No, the "trial and errors" is not a typo for "trial and error" - if you script, error is usually plural.

Author:  Kaus [ Sat Mar 07, 2009 7:51 pm ]
Post subject:  Re: A QUESTION ABOUT CSV USE

Promethius wrote:
if you script, error is usually plural.


Lol so true.

Author:  Promethius [ Sat Mar 07, 2009 10:44 pm ]
Post subject:  Re: A QUESTION ABOUT CSV USE

Kaus wrote:
Promethius wrote:
if you script, error is usually plural.


Lol so true.


.. and the result of testing a script after taking two pods already, and not paying attention in a game tonight - by an alien no less..

Your Subterfuge Enterra has been destroyed!

You will have to start over from scratch!
Maybe you'll have better luck with a different ship!
Cleaning up mailbox...
20%

But, back on topic. Yop, give all of your script ideas a shot and see what happens. Sometimes you will come up with a novel way of doing something just through trying different approaches. I have never claimed to be a good script writer (see above results), but I try different approaches to get the results I want (sooner or later).

I really wouldn't suggest too much testing in a live game as having to wait until extern slows things down a bit. The above issue let me find the problem in the script tho, so an SD is worth it.

Author:  Yop_Solo [ Sun Mar 08, 2009 1:11 am ]
Post subject:  Re: A QUESTION ABOUT CSV USE

I found my error.... i used the wrong command... i wrote LOAD and i was suppose to use LOADVAR...
So all my things are working now... But, when I re-read and write my script I found other errors before i saw LOAD.... So it was bad thing for a good thing...

Thanks to all.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/