Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » New Technology Browser
New Technology Browser Mon, 28 November 2005 15:44 Go to next message
Orion

 
Crewman 2nd Class

Messages: 15
Registered: November 2005
Location: Strasbourg, France
Hello,

these last weeks, I have created a Technology Browser for XML files in the FreeStars format. You can download it from : http://pascal.wassong.free.fr/Etoiles/Etoiles.html

It needs Java 1.5 (or greater). Read the file README.txt included in the distribution to get more informations.

Enjoy it !

Report message to a moderator

Re: New Technology Browser Sun, 08 January 2006 18:08 Go to previous messageGo to next message
Madman is currently offline Madman

 
Officer Cadet 1st Year

Messages: 228
Registered: November 2003
Location: New Zealand
It looks like it might be quite nice, particularly as Java is my language of choice for this sort of thing. I'll have to wait till Java 1.5 comes out for my operating system before I try it though.

Is there any chance of source code? My experience being that things without source code eventually becomes orphaned Sad

Cheers,
Madman

Report message to a moderator

Re: New Technology Browser Sun, 15 January 2006 06:29 Go to previous messageGo to next message
Orion

 
Crewman 2nd Class

Messages: 15
Registered: November 2005
Location: Strasbourg, France
At last a reaction ! And even a positive one. Thank you Madman. Smile

About the source code, I am not sure if I will open source it or not. I know about the risk of the code becoming orphaned. I agree with you on that point. This was one of the reason why I didn't advertise the tech browser while it was in developpement : I was not sure when I would have the time to complete it.

If I loose all interest in this code, I'll make the source public. I think that in the current state, the code is not of great interest : who is interested by just a tech browser ?

I have already created 2 others open source projects. The programs are used by people in a small community (though I think that the Stars! community is wider). My experience is that there is no interest in source code. Nobody is contributing to my other projects.

Orion

Report message to a moderator

Re: New Technology Browser Sun, 15 January 2006 07:01 Go to previous messageGo to next message
Madman is currently offline Madman

 
Officer Cadet 1st Year

Messages: 228
Registered: November 2003
Location: New Zealand
Orion wrote on Mon, 16 January 2006 00:29

If I loose all interest in this code, I'll make the source public. I think that in the current state, the code is not of great interest : who is interested by just a tech browser ?

Well, I suppose I haven't been clear about my interest. I'd quite like to find some way of contributing to the FreeStars project (I'm looking at the code at the moment but running into some problems as mentioned in another thread).

One option is to look at writing a client that can run on Linux (most of the effort I see is going into Windows versions, which I can't work on - I only have Wine to run Windows stuff, and no Windows development tools).

My natural choice for this would be Java (my language of choice for this level of problem, I dislike languages without garbage collection), except that it would mean I can't use any of the currently written C++ code. For a Java client, a tech browser would suddenly becomes quite useful.

Could I get you to PM me an email address, so if I was to go this route (unlikely, because of the current code base that I can't use), I could contact you to request the code? Of course I would only be able to use it if you were prepared for it to go into a GPL project, and only used GPL-compatible libraries.

Report message to a moderator

More screenshots available Sun, 05 February 2006 12:59 Go to previous messageGo to next message
Orion

 
Crewman 2nd Class

Messages: 15
Registered: November 2005
Location: Strasbourg, France
Some people interested in the Technology Browser told me that they don't have Java 1.5 installed on their computer. To give them a better feel of what the Etoiles 0.1 is, I have added more screenshots at my site :

http://pascal.wassong.free.fr/Etoiles/Etoiles.html

Orion

Report message to a moderator

Re: New Technology Browser Sun, 05 February 2006 13:18 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
I only have 1.4 on my computer. I understand 1.5 is still beta so you might not have many users until it is released. Nice to see the screenshots though! Smile

Report message to a moderator

Java 1.5 release date Sun, 05 February 2006 14:27 Go to previous messageGo to next message
Orion

 
Crewman 2nd Class

Messages: 15
Registered: November 2005
Location: Strasbourg, France
Java 1.5 was officially released the 2004-09-29. Version 1.6 is currently in beta stage and will be out this year.

You can always download the latest version at : http://java.com

Orion

Report message to a moderator

Re: Java 1.5 release date Sun, 05 February 2006 16:15 Go to previous messageGo to next message
Madman is currently offline Madman

 
Officer Cadet 1st Year

Messages: 228
Registered: November 2003
Location: New Zealand
Orion wrote on Mon, 06 February 2006 08:27

Java 1.5 was officially released the 2004-09-29. Version 1.6 is currently in beta stage and will be out this year.

Thanks, I'll look at that, but I've got to be a bit careful about tinkering with my toolchain, as I also use this machine for work, and that uses JDK1.4. I'll see if I can set it up to switch between the two.

Also would be nice to have a repository somewhere I can get it from with debian aptitude, but not holding my breath on that.

Report message to a moderator

Re: Java 1.5 release date Sun, 05 February 2006 16:33 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
Strange my java is supposed to auto-update... Anyway, did you see http://darkcluster.com/starpedia.php this is my site, i'm trying to do a tech browers with HTML. it is almost complete now. I need to add a few more things e.g. beam weapon descriptions, hull diagrams.

Report message to a moderator

Nice tech browser Mon, 06 February 2006 14:11 Go to previous messageGo to next message
Orion

 
Crewman 2nd Class

Messages: 15
Registered: November 2005
Location: Strasbourg, France
Your HTML tech browser is well done.

How static is the information ? How difficult (or how easy Razz) is it to change information ?

Report message to a moderator

Re: Nice tech browser Wed, 08 February 2006 12:16 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
It is as dynamic as I could make it without too much work. I basically dump data from the EXE directly into a database and put a web front end to it.

For certain qualities not in the raw data, I have to adjust the script manually.

Report message to a moderator

Re: Nice tech browser Thu, 23 February 2006 21:21 Go to previous messageGo to next message
Zoiker is currently offline Zoiker

 
Petty Officer 2nd Class

Messages: 59
Registered: January 2006
PricklyPea wrote on Wed, 08 February 2006 12:16

I basically dump data from the EXE directly into a database and put a web front end to it.



Might I inquire as to how you did that?

Cheers,
Zoiker

Report message to a moderator

Re: Nice tech browser Fri, 24 February 2006 04:00 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Wed, 08 February 2006 18:16

It is as dynamic as I could make it without too much work. I basically dump data from the EXE directly into a database and put a web front end to it.

For certain qualities not in the raw data, I have to adjust the script manually.


Cool. Cool

I'd like to know two things:

1) What are those "qualities" not present in the EXE itself. Confused Shocked Sherlock

2) Could there be a "master page" for, say, "all weapons" or "all hulls", or even "all items", instead of just a myriad links? Wink


[Updated on: Fri, 24 February 2006 04:02]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Fri, 24 February 2006 06:28 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
1) The EXE has tables of data on the items. This can be dumped. However, it does not have extra things e.g. enigma pulsar has engine stats such as fuel usage, but cloaking and MJ ability is hardcoded via a check. Therefore, any tech viewer needs to implement this separately.

2) Yes, I will implement this.

Report message to a moderator

Re: Nice tech browser Fri, 24 February 2006 06:38 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Fri, 24 February 2006 12:28

1) The EXE has tables of data on the items. This can be dumped. However, it does not have extra things e.g. enigma pulsar has engine stats such as fuel usage, but cloaking and MJ ability is hardcoded via a check. Therefore, any tech viewer needs to implement this separately.


I see. So, it's only (or mainly) MT items, then? Sherlock

I compiled years ago a few html pages comprising most items (including MT), with stats, tech reqs and icons and all. Static, of course, but I've been toying with the idea of turning them dynamic (using that allitems table + some simple javascript code) since forever. Smile

One of these weekends, perhaps... Wink



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Fri, 24 February 2006 07:21 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
m.a@stars wrote on Fri, 24 February 2006 06:38


I see. So, it's only (or mainly) MT items, then? Sherlock


Mainly. Pen scan ranges on scanners are hard-coded etc. I guess there are many exceptions which becomes a pain. PRT/LRT restrictions are also hard-coded.

Report message to a moderator

Re: Nice tech browser Sat, 25 February 2006 05:36 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Fri, 24 February 2006 13:21

m.a@stars wrote on Fri, 24 February 2006 06:38


I see. So, it's only (or mainly) MT items, then? Sherlock


Mainly. Pen scan ranges on scanners are hard-coded etc. I guess there are many exceptions which becomes a pain. PRT/LRT restrictions are also hard-coded.


Ouch. So, a secondary table for penscans, and another for MT items... Confused And of course the one for PRT/LRT influences on tech. Rolling Eyes Are there any more things to take into account? Sherlock

- - - - - - -

While tinkering with the main allitems table (as extracted from the EXE) in order to display it in a nice flat html page, I noticed a few things:
- penscan ranges for planetary scanners can be guessed by manipulating the negative range shown. Sherlock
- penscan ranges for ship scanners need a secondary table, but there's only 3 items in that one. Smile
- most (or all) PRT/LRT-specific or MT items are clearly labelled as such, wich makes it relatively easy to link them to the extra info needed. Very Happy
- The MJ and OT carry a wrong "class" flag, possibly inherited from other, earlier gadgets. Confused
- All cloaks carry bit-packed "property" flags, possibly telling stealth percentages, and/or PRT restrictions, but I don't know yet how to decode these. Sad
- Planetary defenses also carry "property" info which might be the base percentage of defense of individual defenses against one or both types of bombs. No time to delve into these, eiter, yet. Sad
- Ship and starbase hulls carry bitpacked slot info which I think I know how to decode, but I'm not sure how to display.
- Engine fuel tables should be easier to display once I can decide on how to do it. Razz
- Explanatory text and/or images (if any) for each item must come from another source.


[Updated on: Mon, 27 February 2006 05:21]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: More screenshots available Mon, 27 February 2006 04:59 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
Orion wrote on Sun, 05 February 2006 18:59

Some people interested in the Technology Browser told me that they don't have Java 1.5 installed on their computer. To give them a better feel of what the Etoiles 0.1 is, I have added more screenshots at my site :

http://pascal.wassong.free.fr/Etoiles/Etoiles.html

Orion



It looks pretty nice, indeed. I hope you continue to develop it, as well as the Stars! client itself. Cool



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Mon, 27 February 2006 09:02 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
- penscan ranges for planetary scanners can be guessed by manipulating the negative range shown. Sherlock

Yup. Planetary penscans are shown negative so easy to calculate.

- penscan ranges for ship scanners need a secondary table, but there's only 3 items in that one. Smile

True. In my crabby mod, I alter the code to read penscans directly from the information tables and update the items directly there.

- All cloaks carry bit-packed "property" flags, possibly telling stealth percentages, and/or PRT restrictions, but I don't know yet how to decode these. Sad

This is documented in the guts of cloaking (and also the help files). There's a non-linear formula for cloaking.

- Ship and starbase hulls carry bitpacked slot info which I think I know how to decode, but I'm not sure how to display.
- Engine fuel tables should be easier to display once I can decide on how to do it. Razz

If you write php code to do the display either of the above, I would be interested in incorporating into the starpedia.

- Explanatory text and/or images (if any) for each item must come from another source.

I'll be adding commenting ability to starpedia.

Report message to a moderator

Re: Nice tech browser Mon, 27 February 2006 10:04 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Mon, 27 February 2006 15:02

- All cloaks carry bit-packed "property" flags, possibly telling stealth percentages, and/or PRT restrictions, but I don't know yet how to decode these. Sad

This is documented in the guts of cloaking (and also the help files). There's a non-linear formula for cloaking.


Thanks for the heads up. I had little time to think of perusing the good ole' helpfile. Amazing what one can forget. Razz

Turns out the math is quite simple. The down side is the SS cloaks seem to lack any clear telltale of their PRT-exclusiveness. Evil or Very Mad

Quote:

If you write php code to do the display either of the above, I would be interested in incorporating into the starpedia.


Who needs php when you have JavaScript? Wink

I can hijack some of my habtool code (actually, Henk Poel's code) to display the fuel graphs. Smile I guess the Defense curves would not be too hard, either, provided I had a clue about the math they follow. Sherlock Ship slots, now that would be fun, but probably out of the scope of my still-quite-plain-and-simple itemdata dumper. Shocked


[Updated on: Mon, 27 February 2006 10:43]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Mon, 27 February 2006 10:22 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
>Who needs php when you have JavaScript? Wink

Javascript is also fine, but with php, I can link to the backend database so that the starpedia automatically updates for mods (I'll be preparing a separate starpedia for my new mod).

>Ship slots, now that would be fun, but probably out of the scope of my still-quite-plain-and-simple itemdata dumper.

I've got the details of how to decode the ship slots, but hate writing UI code so if someone is willing to do that, then we have enough skill knowledge to do it combined Wink

Report message to a moderator

Re: Nice tech browser Mon, 27 February 2006 10:41 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Mon, 27 February 2006 16:22

>Who needs php when you have JavaScript? Wink

Javascript is also fine, but with php, I can link to the backend database so that the starpedia automatically updates for mods (I'll be preparing a separate starpedia for my new mod).


Heh, I use a statically-generated js table for that. I could "upgrade" it to copy-paste inside a form (Javascript has its limits), but as long as items don't change more than once a day, it's simple enough... Razz

Quote:

>Ship slots, now that would be fun, but probably out of the scope of my still-quite-plain-and-simple itemdata dumper.

I've got the details of how to decode the ship slots, but hate writing UI code so if someone is willing to do that, then we have enough skill knowledge to do it combined Wink


The Evil or Very Mad is in the details, as they say. I got some old specs on how to tell kinds of slots and number of items they hold. Things like location are hazier. Sherlock I wouldn't mind tinkering with your recipe book for these. And you'd be amazed how simple it can be drawing square boxes with plain old portable html. Wink



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Mon, 27 February 2006 14:29 Go to previous messageGo to next message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
Quote:

The Evil or Very Mad is in the details, as they say. I got some old specs on how to tell kinds of slots and number of items they hold. Things like location are hazier. Sherlock I wouldn't mind tinkering with your recipe book for these. And you'd be amazed how simple it can be drawing square boxes with plain old portable html. Wink



yeah. it's actually quite easy when you look at the raw data. the location data is just in the form of xy offsets in high nibble/low nibble defining (from memory) the top left corner of the box. Also, the offsets aren't from zero (StarsEd shows you the offsets in the diagram).

Would be quite nice to be able to read the ship data and then to convert it into a html diagram.

Report message to a moderator

Re: Nice tech browser Wed, 01 March 2006 07:33 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
PricklyPea wrote on Mon, 27 February 2006 20:29

Would be quite nice to be able to read the ship data and then to convert it into a html diagram.


I'm almost there! Very Happy

Along the way, I've found that the "init" byte is actually encoding hull initiative in the lower 6 bits plus something else in the upper 2 bits, interestingly akin to "ship class" info. Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Nice tech browser Wed, 01 March 2006 07:43 Go to previous messageGo to previous message
PricklyPea is currently offline PricklyPea

 
Lieutenant

Messages: 534
Registered: February 2005
m.a@stars wrote on Wed, 01 March 2006 07:33

Along the way, I've found that the "init" byte is actually encoding hull initiative in the lower 6 bits plus something else in the upper 2 bits, interestingly akin to "ship class" info. Sherlock



A problem with all the bitpacking that goes on is that it makes things less human readable within a hex editor.

BTW, how do you know if it is 6 bits? I wondered whether it was 4,5,6 or some other number. I guess the Deathstar implies that it is at least 5 bits - but I haven't checked any code to verify.

[Mod edit: fixed quote]


[Updated on: Sun, 05 March 2006 18:09] by Moderator


Report message to a moderator

Previous Topic: FreeStars API Documentation
Next Topic: Writing a C# or Java client?
Goto Forum:
  


Current Time: Thu May 09 10:23:51 EDT 2024