| Author |
Message |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
Right, in the Supremacy XML data files, I notice that every object in the game is given a key name, ie. a distinct and easy to understand name to refer to and gain access in programs. The major race ships already have a naming convention like:
ROM_WARBIRD_II FED_EXPLORER_III
I'm going to make sure I follow this in my data structures. But what about for the minor races and their ships? Is there a XML file done already? f there's already exists a minor_race_ships.xml with all the info filled out. That would be awesome.
If there isn't, how about this:
Okay I'm referring to a copy of the Minor Powers Ship Database.xls by Zeleni and Matress (oh, if there's an updated version please send me)
and we key name them like this...
Acamarian Raider 1 ACAMARIAN_RAIDER_I Acamarian Raider 2 ACAMARIAN_RAIDER_II Andorian Warcruiser 1 ANDORIAN_WARCRUISER_I Andorian Warcruiser 2 ANDORIAN_WARCRUISER_II ... etc ... As for names with apostrophes, just take out the apostrophe. B'omar Fighter BOMAR_FIGHTER T'Lani Heavy Cruiser 1 TLANI_HEAVY_CRUISER_I ... etc ...
simply replacing space with underscore?
Too long? I dont like shortening the race name, since ACA_ or AND_ is not informative enough, I also thought about shortening the reoccuring descriptive words like Heavy, Light to H, and L respectively - so they appear as H_CRUISER / L_CRUISER. But I decided against it since the majors' key names do not do this.
|
| 16 Dec 2007, 17:59 |
|
 |
|
mstrobel
Chief Software Engineer
Joined: 11 Aug 2005, 01:00 Posts: 2934
|
You seem to have it nailed. I usually spell out the minor race names because there's so many of them. The minor race and empire stuff all go in the same XML files.
EDIT: And yes, all spans of whitespace get converted to a single underscore, and all characters except letters, numbers, and underscores ([_a-zA-Z0-9]) get dropped. By convention, all my keys are uppercase.
_________________ Lead Developer of Star Trek: Supremacy 253,658 lines of code and counting...
|
| 16 Dec 2007, 18:53 |
|
 |
|
Zeleni
Aesthetics Surgeon
Joined: 24 Oct 2006, 01:00 Posts: 1349 Location: Croatia
|
Sounds fine to me  Wait for mike to see what he has on mind. Minor database is updated but only with ship descriptions, but i think of adding 2 new tech levels (upgrades) to each ship for example bomar_fighter_I (tech 3) upgades to bomar_fighter_II (tech 7) when minor race reachs new tech level, in this case tech 7 and finally bomar_fighter_III (tech 10). Number of ships in the game will be always the same with one differnce, minor ships will upgrade automatically for keeping game balance and reality even in late stages of the game. This is another thing which waits Mike's approval. 
_________________ Carpe Diem
|
| 16 Dec 2007, 18:54 |
|
 |
|
cdrwolfe
Combat Engineer
Joined: 18 Jul 2005, 01:00 Posts: 1054
|
I'd agree with the simple affixation of race + shiptype/Class, i.e cruiser, heavy cruiser, dreadnought etc. Fits with the general theme.
Regards Wolfe
|
| 16 Dec 2007, 19:52 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
 thanks you all. Good to set some standards now and make it easier later.
|
| 16 Dec 2007, 20:43 |
|
 |
|
cdrwolfe
Combat Engineer
Joined: 18 Jul 2005, 01:00 Posts: 1054
|
Another joyful task someone may eventually have to do is assign both hitpoints and 'cannon' positions for each ship  . Oh what fun that tedious job may be, i nominate MOE  Regards Wolfe
|
| 16 Dec 2007, 21:25 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
|
| 16 Dec 2007, 21:55 |
|
 |
|
mstrobel
Chief Software Engineer
Joined: 11 Aug 2005, 01:00 Posts: 2934
|
Just define the ship upgrades the way you normally would, and I'll implement the auto-upgrade logic myself. It's a simple matter of checking each minor race ship for possible upgrades on each turn and then upgrading them on the spot.
_________________ Lead Developer of Star Trek: Supremacy 253,658 lines of code and counting...
|
| 16 Dec 2007, 22:07 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
Ok then Mike, will do. What about the weapon types? Would it be possible to increase the number of types? Currently there are only two types of energy weapon and 2 types of secondary weapon. Maybe i'm being overly pedantic, but some of the weapons that the minor races have don't perfectly match these types. If we could come up with some extra weapon types, I could fit them in better, and it would mean we could put more eye candy effects in the game too. It would also be nice if I could perhaps specify the weapon colour or something. If the weapons were objects then you would just need to add different colour textures and it would be a whole new weapon!  For example, we could have: Energy WeaponsBeam (Already implemented, constant stream of energy) Pulse (Already implemented, small, fast, multiple hits of energy) Bolt (As in Disruptors, a large, single, moderately fast hit of energy) Wave (Limited range, but an expanding wave of energy that may hit multiple ships or shields depending on how shields work. Like the from Starfleet Command 2) Matter Stream (Weapons that send streams of destructive particles at an enemy. The particles disperse over distances and so lose their effectiveness as the range increases. Like the from Starfleet Command 2. Early Vulcan and Andorians ships used these) Secondary WeaponsTorpedo (Already implemented) Missile (Already implemented) Explosive Charge/Mine Could it be done? Obviously the above list is just possibilities, and people may decide to change/remove/add to it in future.
|
| 16 Dec 2007, 23:11 |
|
 |
|
mstrobel
Chief Software Engineer
Joined: 11 Aug 2005, 01:00 Posts: 2934
|
The weapon categories in the editor are only needed for the automated combat system, which only distinguishes between directed (beam) and undirected (projectile) type weapons. Any other details are only needed for the tactical combat system, so those will be Strings' responsibility  .
_________________ Lead Developer of Star Trek: Supremacy 253,658 lines of code and counting...
|
| 16 Dec 2007, 23:16 |
|
 |
|
Kenneth_of_Borg
Ship Engineer
Joined: 10 Jul 2006, 01:00 Posts: 5220 Location: Space is disease and danger, wrapped in darkness and silence!
|
Should I convert the model file names to this format? Will an extension exclude conflict with other data files for the ships as outlined above? - Or just name the folder for the model in that way?
Last edited by Kenneth_of_Borg on 17 Dec 2007, 00:27, edited 5 times in total.
|
| 17 Dec 2007, 00:06 |
|
 |
|
cdrwolfe
Combat Engineer
Joined: 18 Jul 2005, 01:00 Posts: 1054
|
Anything is possible MOE,
Some require probably texture changes and how often they get fired each weapon 'cycle', mines i don't think would be to hard either.
Regards Wolfe
|
| 17 Dec 2007, 00:07 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
I'm just trying to think of possibilities before anything is programmed - it's better to think of them now before some element of the programming accidentally prevents an idea from being implemented. 
|
| 17 Dec 2007, 00:23 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
Last edited by Strings on 17 Dec 2007, 01:11, edited 2 times in total.
|
| 17 Dec 2007, 00:33 |
|
 |
|
cdrwolfe
Combat Engineer
Joined: 18 Jul 2005, 01:00 Posts: 1054
|
You couldn't add a feature of triangle picking, on models which can return the position relative to the center of the model (0.0f, 0.0f, 0.0f).
Regards Wolfe
|
| 17 Dec 2007, 01:05 |
|
 |
|
Zeleni
Aesthetics Surgeon
Joined: 24 Oct 2006, 01:00 Posts: 1349 Location: Croatia
|
This project is really going forward  . Sounds great Strings! EDIT: What about combat math, are you going to use dafedz model of damage calculation for combat result?
_________________ Carpe Diem
Last edited by Zeleni on 17 Dec 2007, 01:11, edited 1 time in total.
|
| 17 Dec 2007, 01:07 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
|
| 17 Dec 2007, 01:08 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
Now lets make it more complicated!  Matress wants to see planets and asteroids and comets and blackholes...um...well...we wouldn't actually see a blackhole, but you know what I mean...and dust clouds and asteroid belts and planetary rings and nebulae and it all has to be working with Newtonian physics and perfect representations of a planetary system...
|
| 17 Dec 2007, 01:23 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
Lol, one thing at a time, and all in good time 
|
| 17 Dec 2007, 01:57 |
|
 |
|
mstrobel
Chief Software Engineer
Joined: 11 Aug 2005, 01:00 Posts: 2934
|
Wow, I can't tell you how glad I am to have you onboard, Strings  . I don't think we need to worry about networking the combat system--you can just expose a callback where I'll send everybody's combat orders for the turn (and then you can kick off the calculations and animation), and events for when the local player submits her orders (and maybe for when combat is over). I can include an integer in the combat initialization data (whatever that ends up being) that you can use as the seed in your random number generators, so that any random values will be the same across all clients (and thus the combat results will be the same).
_________________ Lead Developer of Star Trek: Supremacy 253,658 lines of code and counting...
|
| 17 Dec 2007, 02:20 |
|
 |
|
Kirktitude
Crewman
Joined: 08 Dec 2007, 03:05 Posts: 37 Location: California US
|
_________________ If you wear yellow; You are a prosporous fellow If you wear blue; Long life will come to you But if you wear red; You will soon be dead!
|
| 17 Dec 2007, 04:58 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
The Borg are not in the minor race ships list, are they in .. maybe random events? anyway, I'm applying the same naming system to them. so .. BORG_CUBE BORG_SPHERE etc Early screenshot of the editor: Yep that's a slowly rotating UFP emblem Update on progress: - Fixed an issue with the viewport crashing program when running on nVidia cards and/or under XP. - A missing info.xml no longer causes crash, but gracefully informs user of missing file. - Implemented the rotate by 90 degrees with buttons, via input box still needs work, so does saving changes to the .xml file.
|
| 19 Dec 2007, 22:37 |
|
 |
|
Zeleni
Aesthetics Surgeon
Joined: 24 Oct 2006, 01:00 Posts: 1349 Location: Croatia
|
It's nice to hear about "viewer" progress! Keep up good work Strings Ohhh Borg, i will add borg to shiplist as sphere and cube 
_________________ Carpe Diem
|
| 19 Dec 2007, 23:40 |
|
 |
|
mstrobel
Chief Software Engineer
Joined: 11 Aug 2005, 01:00 Posts: 2934
|
...however, if you separate the model editor out from the rest of the form (as a user control, for example), and just set the unique key as a property, it could be embedded in the main Supremacy editor for individual ships  . Potentially, anyway--no sense in getting ahead of ourselves  .
_________________ Lead Developer of Star Trek: Supremacy 253,658 lines of code and counting...
|
| 20 Dec 2007, 00:05 |
|
 |
|
Strings
Lieutenant Junior Grade
Joined: 11 Nov 2007, 02:55 Posts: 279 Location: UK
|
Yeah I've toyed with the idea too in my head  It is already a user control, and it has a ChangeSelectedModel(string key) public method so it is definately doable.
|
| 20 Dec 2007, 00:19 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
The Borg are aready in on my shiplist, Zeleni, and i've got more designs in there than just the Cube and Sphere......although I haven't exactly updated the shiplist in months...  ... Good work, Strings! Animated insignia, eh? Ooh that gives me an idea, Mike! Why don't you implement... *Idea hidden to maintain Mike's sanity* 
|
| 20 Dec 2007, 00:48 |
|
 |
|
Zeleni
Aesthetics Surgeon
Joined: 24 Oct 2006, 01:00 Posts: 1349 Location: Croatia
|
More designs? it's ok by me. Yes indeed, Mike and Strings are doing great stuff.
_________________ Carpe Diem
|
| 20 Dec 2007, 00:53 |
|
 |
|
Matress_of_evil
Evil Romulan Overlord of Evil - Now 100% Faster!
Joined: 02 Dec 2004, 01:00 Posts: 7801 Location: Returned to the previous place.
|
|
| 20 Dec 2007, 00:55 |
|
 |
|
Kenneth_of_Borg
Ship Engineer
Joined: 10 Jul 2006, 01:00 Posts: 5220 Location: Space is disease and danger, wrapped in darkness and silence!
|
These are the models we have so far
|
| 20 Dec 2007, 01:58 |
|
 |
|
cdrwolfe
Combat Engineer
Joined: 18 Jul 2005, 01:00 Posts: 1054
|
Nice ships, though bottom one is a bit green  Regards Wolfe
|
| 20 Dec 2007, 02:00 |
|
 |
|