.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #71  
Old February 20th, 2005, 06:46 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

All right, the bad news is I gave up on the .NET-powered templatizer... the good news is I moved to Java!

This was actually prompted by my switch to Linux; Mono's IDE isn't very developed at this point, whereas with Java you can use NetBeans.

Well, over the past 3 days I completely rewrote the templatizer part of the program, and gave up on the expression evaluator - because I finally found one that does exactly what I want, only it's even better than the one I wrote!

Have a look at this:
http://directory.fsf.org/science/math/calc.html

One problem I foresee is that it's called "calc" which is the name of the standard Windows calculator... well I could put in a dialog to locate the "real" calc, but for now - hey, who uses the crappy Windows calculator anyway? Just rename it!

The templatizer is almost working again, and it even has a GUI, but the thing I'm stuck on right now is trying to get the thing to not skip tech grids! It would be much easier if I weren't trying to support an unlimited number of tech grids... the very first templatizer supported 3; would 16 do? I say this because if I have a set number of grids, I can use nested for loops, but with an unlimited number, I have to use recursion and that gets messy!

Unless SJ wants to help me out, seeing as he's solved this problem already, even though I'm trying to make something that will compete with his Tech Gridder... hey, I did give up on .NET
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #72  
Old February 21st, 2005, 11:34 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Templatizer 3 is here!!!!!
http://home.fuse.net/koliset/SE4/tem...-3.0.0.tar.bz2
You'll need the aforementioned calc program, as well as the latest Java (not .NET) runtime.
Questions? Comments?
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #73  
Old February 22nd, 2005, 02:57 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

I just fixed up some bugs... c'mon, somebody download this thing & try it out! Get calc and see if it works on Windows - it's a pretty nifty tool
http://home.fuse.net/koliset/SE4/tem...-3.0.1.tar.bz2
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #74  
Old February 22nd, 2005, 04:19 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Fixed another bug, or maybe broke something else, who knows/cares, I'm tired...
http://home.fuse.net/koliset/SE4/tem...-3.0.2.tar.bz2
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #75  
Old February 22nd, 2005, 09:31 PM

leo1434 leo1434 is offline
Corporal
 
Join Date: Jan 2003
Location: Buenos Aires, Argentina
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
leo1434 is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Isn't it possible to distribute an .exe file, or give more complete intructions on how to use this tool?
Reply With Quote
  #76  
Old February 22nd, 2005, 10:45 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Hmm, an .exe... might be tricky to do on my Linux system... I could make a zip version though... oh, and just put this into a file called templatizer.bat and then you can double click the batch file to run it (assuming you have Java 1.5 and calc installed):

java -jar templatizer.jar

What kinds of more complete instructions are you looking for?

Oh, and congratulations & thanks for being the first to respond here - for a while I thought I was going to do this for nothing!

BTW, I still have another bug to fix up - functions defined out of alphabetical order don't work properly I hope to get to it tonight or at least sometime in the next few days...
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #77  
Old February 23rd, 2005, 01:38 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

OK, version 3.0.3 is out...
http://home.fuse.net/koliset/Program...izer-3.0.3.zip

I've fixed lots of bugs... though I still haven't tried actually loading any of the generated files into SE4... I wonder if SE4 will choke on the UNIX formatted files, since I forgot to tell it to place the carriage return after each newline like Windows prefers...
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #78  
Old February 23rd, 2005, 05:26 AM
Aiken's Avatar

Aiken Aiken is offline
Major
 
Join Date: Jan 2004
Location: Taganrog, Russia
Posts: 1,087
Thanks: 0
Thanked 0 Times in 0 Posts
Aiken is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Do I still need a EEE part to get it to work?
I can't find calc's binaries, do I need them actually? And where to get them?
Reply With Quote
  #79  
Old February 23rd, 2005, 11:22 AM
Spoo's Avatar

Spoo Spoo is offline
First Lieutenant
 
Join Date: Jan 2001
Location: Toledo, OH
Posts: 641
Thanks: 0
Thanked 0 Times in 0 Posts
Spoo is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

It looks like calc is only available as source files. Most windows users don't have a compiler handy, you know.
__________________
Assume you have a 1kg squirrel
E=mc^2
E=1kg(3x10^8m/s)^2=9x10^16J
which, if I'm not mistaken, is equivilent to roughly a 50 megaton nuclear bomb.
Fear the squirrel.
Reply With Quote
  #80  
Old February 23rd, 2005, 11:43 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

No, you don't need EEE; you do need calc binaries though.
Hmm, let me go see where the binaries are... I can't find them either; if you want you can compile it with cygwin though... sorry, I only noted that calc runs on Windows; I didn't check for Windows binaries... I really need to plan better...
But basically what I gather from the Windows build instructions is that you need to set up Cygwin (make sure you get the gcc package, it's the C compiler!), put the source in your Cygwin directory, run cygwin, go to your source directory in cygwin (cd /usr/src/calc or whatever your source is under), copy the Windows-specific files to the source directory (cp win32/*.c win32/*.h .) and build the executable (make win32_hsrc)
I have cygwin on the old laptop; maybe I can do all that for you, assuming distributing binaries of someone else's software is OK under the LGPL (I think it is, as long as I include the source or at least say where to get it...)
Alternatively, you could use the DJGPP compiler... that runs natively under Windows... see the above readme for instructions on how to compile it with DJGPP...
Hmm, this all needs to go in the documentation for the templatizer...
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.