Page 4 of 4

RE: Any plans to improve the Editor?

Posted: Sun May 14, 2006 11:05 pm
by golden delicious
ORIGINAL: ralphtrick
CSV is short for comma separated value (value, value, value.)

Well, to be ultra-anal, "value,value,value".... [:'(]

RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 3:32 am
by XPav
ORIGINAL: ralphtrick
Eventually, I plan to expost all the events in a scripting language called Python. You'll be able to use it in addition to the current event engine.

For now, I did add in F6/F7 (Event Load/Save) The current format is CSV, and very unfriendly, but it should be useful for some things, especially translation.
Excellent! Python's a great choice. I'd be interested to know how much of the inside guts will be available to the script -- and if these scripts can run at other times besides at the beginning of each turn.


RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 3:32 am
by XPav
ORIGINAL: golden delicious

ORIGINAL: ralphtrick
CSV is short for comma separated value (value, value, value.)

Well, to be ultra-anal, "value,value,value".... [:'(]

No, it's "value", "value", "value"

:)

RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 11:23 am
by golden delicious
ORIGINAL: XPav

No, it's "value", "value", "value"

Aren't quotemarks only required for alphanumeric fields?

RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 11:56 am
by Jeff Norton
ORIGINAL: golden delicious

ORIGINAL: XPav

No, it's "value", "value", "value"

Aren't quotemarks only required for alphanumeric fields?
Just covered this in SQL class. http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm gives a pretty good overview of how it works...

RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 1:15 pm
by ralphtricky
ORIGINAL: XPav
ORIGINAL: ralphtrick
Eventually, I plan to expost all the events in a scripting language called Python. You'll be able to use it in addition to the current event engine.

For now, I did add in F6/F7 (Event Load/Save) The current format is CSV, and very unfriendly, but it should be useful for some things, especially translation.
Excellent! Python's a great choice. I'd be interested to know how much of the inside guts will be available to the script -- and if these scripts can run at other times besides at the beginning of each turn.

I'll know more as I get into it, but I don't expect them to be only at the beginning of the turn. I can see events before entering a hex, and on a unit's destruction, at least.


RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 1:22 pm
by ralphtricky
ORIGINAL: golden delicious

ORIGINAL: ralphtrick
CSV is short for comma separated value (value, value, value.)

Well, to be ultra-anal, "value,value,value".... [:'(]
OK, I'm going to have to be precise then...

The events are outputted as a series of values, with no spaces between, that are separated by commas. Unlike a normal CSV file, there are no quotation marks around the alpha fields. The final section, the 'news' section can contain commas, although this may make it difficult for other programs like Excel to read them.

I've attached a sample.

This should be readable by anyone who has access to a spreadsheet program. In addition support by a program like ODD is possible.

When the events are read back in, they replace the existing event, that means that if you remove events, you will have to manually remove them from the scenario as well.

RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 1:25 pm
by ralphtricky
ORIGINAL: ralphtrick
ORIGINAL: golden delicious

ORIGINAL: ralphtrick
CSV is short for comma separated value (value, value, value.)

Well, to be ultra-anal, "value,value,value".... [:'(]
OK, I'm going to have to be precise then...

The events are outputted as a series of values, with no spaces between, that are separated by commas. Unlike a normal CSV file, there are no quotation marks around the alpha fields. The final section, the 'news' section can contain commas, although this may make it difficult for other programs like Excel to read them.

I've attached a sample.

This should be readable by anyone who has access to a spreadsheet program. In addition support by a program like ODD is possible.

When the events are read back in, they replace the existing event, that means that if you remove events, you will have to manually remove them from the scenario as well.
Someone will have to check, but I believe that I pay attention to the event number, as well, so if you update one event, and only include it in the file that you're uplocading, that is the event number that will be updated. It may be possible that people will develop small libraries of code templates and samples based on event 600, 700, etc.

Ralph



RE: Any plans to improve the Editor?

Posted: Wed May 17, 2006 3:07 pm
by Curtis Lemay
ORIGINAL: ralphtrick
ORIGINAL: XPav
ORIGINAL: ralphtrick
Eventually, I plan to expost all the events in a scripting language called Python. You'll be able to use it in addition to the current event engine.

For now, I did add in F6/F7 (Event Load/Save) The current format is CSV, and very unfriendly, but it should be useful for some things, especially translation.
Excellent! Python's a great choice. I'd be interested to know how much of the inside guts will be available to the script -- and if these scripts can run at other times besides at the beginning of each turn.

I'll know more as I get into it, but I don't expect them to be only at the beginning of the turn. I can see events before entering a hex, and on a unit's destruction, at least.


I'm still hoping to have Theater Options that can be optioned and executed at the start of turn 1 (or at the start of any other turn, for that matter).