|
|
|
|
|
November 25th, 2005, 04:13 PM
|
|
Colonel
|
|
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Contemplating a graphical Templatizer...
Python = snake that strangles its prey before it devours it.
I don't think I want this in my computer
|
November 26th, 2005, 07:49 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Contemplating a graphical Templatizer...
Python = hilarious British comedian. Why don't you want your computer filled with sketches about silly walks and dead parrots?
|
November 26th, 2005, 09:41 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: Contemplating a graphical Templatizer...
Isn't it also a gun?
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
September 13th, 2006, 12:10 PM
|
|
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: Contemplating a graphical Templatizer...
Thread necromancy strikes again! :twisted:
I was thinking of returning the templatizer to Java, and making it more user-friendly, more along the lines of DavidG's SE4Modder. Version 6 (which is still in beta) of Java allows you to mix Java and Javascript ( http://java.sun.com/developer/techni...ing/index.html for details), which means that I could have it so the user interface is in Java, but all the template code (the code that the user actually writes) is in Javascript. So you might have some field, say, Tonnage Structure, with a text box where you can type in a formula, or hit buttons to insert variables. Since Javascript in Java 6 can manipulate real Java objects, I might even make it so you can type field names (such as Tonnage) into other fields (such as Tonnage Structure) - or drag fields around - to make "references" between them. I'd have to prevent circular references, of course, but that shouldn't be too hard - just give each field a reference tree and make sure no object appears in its own reference tree!
Of course, this might all be rather irrelevant with SE5 coming out in the next month or so... any thoughts?
__________________
The Ed draws near! What dost thou deaux?
|
September 13th, 2006, 02:12 PM
|
Corporal
|
|
Join Date: Mar 2006
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Contemplating a graphical Templatizer...
Wow, that'd be a nice tool! I hope you do it. I'm sure there will still be a lot of SE4 still going on for a long while...
|
September 13th, 2006, 02:24 PM
|
|
National Security Advisor
|
|
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
|
|
Re: Contemplating a graphical Templatizer...
I would suggest that you duplicate the entry from the data file, with editable fields that can take either hard text or a formula. I would just supply the user with the allowable formula elements in the help file etc. and a few variables like "level" or "range". The user would then select from a drop box the number of levels to make for the item and then the program exports the entries to a .txt file that can be copy/pasted into the appropriate data file.
|
September 13th, 2006, 04:00 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Contemplating a graphical Templatizer...
Drag and drop for everything seems like wasted effort for something like this. If you are savvy enough to use exotic formulas for generating data files, you don't need no stinkin' drag and drop in a cluttered interface. Something like Kwok's suggestion would IMO be better; even "hard text" is still technically a formula.
Why not just keep the template code in Python? You can have the templatizer write out python scripts, then execute them. In fact, this would be preferable, basically building a front-end to the current python templatizer. This way, advanced users can just make/edit the python scripts directly. In also has the advantage of not wasting time duplicating all of your previous efforts.
|
September 13th, 2006, 04:43 PM
|
|
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: Contemplating a graphical Templatizer...
What do you mean "duplicate the entry from the data file"?
__________________
The Ed draws near! What dost thou deaux?
|
September 13th, 2006, 04:57 PM
|
|
National Security Advisor
|
|
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
|
|
Re: Contemplating a graphical Templatizer...
Basically your interface consists of a replica of the data file entry, with the exception of textboxes or lists for data entry.
Code:
Name := *************
Description := *************
Pic Num := *************
Tonnage Space Taken := *************
Tonnage Structure := *************
Cost Minerals := 450 + ([%Level%] * 50) <--- Example Formula
Cost Organics := *************
Cost Radioactives := *************
Vehicle Type := *************
Supply Amount Used := *************
Restrictions := *************
General Group := *************
Family := *************
Roman Numeral := Auto
Custom Group := *************
Number of Tech Req := [Droplist of numbers?]
Tech Area Req 1 := *************
Tech Level Req 1 := *************
Number of Abilities := [Droplist of numbers]
Ability 1 Type := [Droplist of Abilites?]
Ability 1 Descr := ********************************
Ability 1 Val 1 := *************
Ability 1 Val 2 := *************
Weapon Type := [Droplist]
|
September 13th, 2006, 05:04 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: Contemplating a graphical Templatizer...
I like the idea of not changing the templatizer, just making a front-end to generate scripts.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|