View unanswered posts | View active topics It is currently Mon Apr 20, 2026 11:19 pm



Reply to topic  [ 8 posts ] 
 A QUESTION ABOUT CSV USE 
Author Message
Gameop
User avatar

Joined: Mon Jan 26, 2009 12:27 am
Posts: 123
Unread post 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.

_________________
Dodger known as Yop Solo, Sysop
twgsdodgerbbs.ath.cx
http://cyberquebec.ca/_layout/?uri=http://cyberquebec.ca/twgsdodgerbbs/


Fri Mar 06, 2009 11:44 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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? :)

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 07, 2009 12:34 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1401
Location: Canada
Unread post 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.

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Sat Mar 07, 2009 9:22 am
Profile ICQ YIM
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 07, 2009 12:20 pm
Profile ICQ WWW
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sat Mar 07, 2009 2:38 pm
Profile ICQ
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: A QUESTION ABOUT CSV USE
Promethius wrote:
if you script, error is usually plural.


Lol so true.

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Sat Mar 07, 2009 7:51 pm
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sat Mar 07, 2009 10:44 pm
Profile ICQ
Gameop
User avatar

Joined: Mon Jan 26, 2009 12:27 am
Posts: 123
Unread post 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.

_________________
Dodger known as Yop Solo, Sysop
twgsdodgerbbs.ath.cx
http://cyberquebec.ca/_layout/?uri=http://cyberquebec.ca/twgsdodgerbbs/


Sun Mar 08, 2009 1:11 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.