Fleet Operations Tutorials

1, 2
posted on January 23rd, 2012, 9:13 pm
Megadroid, I know that this is kind of irrelevant, but is there any way for LUA to save a text file containing units selected for the next mission?

EG:

Code: Select all
BEGINSHIP
NAME U.S.S. Enterprise-E
ODF fed_sovereignYr6
// percent, max hitpoints
HEALTH 0.96 215
SHIELDS 0.52 635
ENERGY 0.75 688
// percent, active
SHIELDGEN 0.94 1
ENGINE 0.93 1
SENSOR 0.79 0
WEAPONS 0.46 0
LIFESUPPORT 0.33 1
// number, max
CREW 268 725
ENDSHIP
posted on January 24th, 2012, 12:54 am
remore wrote:GMT -5? East coast right? same here.

Good!

remore wrote:yea todays looking like a wash, tomorrow I will definitely be able to though unless i under up working...  :ermm: not that thats a bad thing in America now a days...

As it turns out, I also ran into a problem.  I'll try tomorrow.
posted on January 24th, 2012, 3:44 pm
Last edited by remore on January 24th, 2012, 5:23 pm, edited 1 time in total.
you should be able to write a txt file with a io command if its been incorporated into lua. as long as it's done correctly should work fine i think but I can't think of a way to encrypt it so people can simply "cheat."

Edit: I'm chillin on Teamspeak as of 12:20 PM
posted on January 25th, 2012, 9:24 pm
TChapman500 wrote:Megadroid, I know that this is kind of irrelevant, but is there any way for LUA to save a text file containing units selected for the next mission?

EG:

Code: Select all
BEGINSHIP
NAME U.S.S. Enterprise-E
ODF fed_sovereignYr6
// percent, max hitpoints
HEALTH 0.96 215
SHIELDS 0.52 635
ENERGY 0.75 688
// percent, active
SHIELDGEN 0.94 1
ENGINE 0.93 1
SENSOR 0.79 0
WEAPONS 0.46 0
LIFESUPPORT 0.33 1
// number, max
CREW 268 725
ENDSHIP



What you'd need is serialization, which MMM doesn't support yet AFAIK. Value stuff you could handle with YAML or JSON, but I don't know about game engine things like the associated model...
1, 2
Reply

Who is online

Users browsing this forum: Yandex [Bot] and 2 guests