[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
READ ONLY Backup - Star Trek Fan Games - View topic - @Mike/Matress/Zeleni - Key names for minor ships
View unanswered posts | View active topics It is currently 17 Apr 2026, 23:03



Reply to topic  [ 80 posts ]  Go to page 1, 2, 3  Next
 @Mike/Matress/Zeleni - Key names for minor ships 
Author Message
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

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
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

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
Profile WWW
Aesthetics Surgeon
Aesthetics Surgeon
User avatar

Joined: 24 Oct 2006, 01:00
Posts: 1349
Location: Croatia
Sounds fine to me :thumbwink: 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. :wink:

_________________
Carpe Diem


16 Dec 2007, 18:54
Profile
Combat Engineer
Combat Engineer
User avatar

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
Profile
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

Joined: 11 Nov 2007, 02:55
Posts: 279
Location: UK
:thumbwink: thanks you all. Good to set some standards now and make it easier later.


16 Dec 2007, 20:43
Profile
Combat Engineer
Combat Engineer
User avatar

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 :D

Regards Wolfe


16 Dec 2007, 21:25
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

Joined: 02 Dec 2004, 01:00
Posts: 7801
Location: Returned to the previous place.


16 Dec 2007, 21:55
Profile WWW
Chief Software Engineer
Chief Software Engineer
User avatar

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
Profile WWW
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

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! :mrgreen:

For example, we could have:

Energy Weapons
Beam (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 Weapons
Torpedo (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
Profile WWW
Chief Software Engineer
Chief Software Engineer
User avatar

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
Profile WWW
Ship Engineer
Ship Engineer
User avatar

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
Profile
Combat Engineer
Combat Engineer
User avatar

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
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

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. :wink: :(


17 Dec 2007, 00:23
Profile WWW
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

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
Profile
Combat Engineer
Combat Engineer
User avatar

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
Profile
Aesthetics Surgeon
Aesthetics Surgeon
User avatar

Joined: 24 Oct 2006, 01:00
Posts: 1349
Location: Croatia
This project is really going forward :thumbwink:. 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
Profile
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

Joined: 11 Nov 2007, 02:55
Posts: 279
Location: UK


17 Dec 2007, 01:08
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

Joined: 02 Dec 2004, 01:00
Posts: 7801
Location: Returned to the previous place.
Now lets make it more complicated! :twisted:

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...

:P


17 Dec 2007, 01:23
Profile WWW
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

Joined: 11 Nov 2007, 02:55
Posts: 279
Location: UK
Lol, one thing at a time, and all in good time :D


17 Dec 2007, 01:57
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

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
Profile WWW
Crewman
User avatar

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
Profile YIM WWW
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

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 :love:

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
Profile
Aesthetics Surgeon
Aesthetics Surgeon
User avatar

Joined: 24 Oct 2006, 01:00
Posts: 1349
Location: Croatia
It's nice to hear about "viewer" progress! Keep up good work Strings :thumbsup:
Ohhh Borg, i will add borg to shiplist as sphere and cube :wink:

_________________
Carpe Diem


19 Dec 2007, 23:40
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

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
Profile WWW
Lieutenant Junior Grade
Lieutenant Junior Grade
User avatar

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
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

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... :oops:

...

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* :twisted: :lol:


20 Dec 2007, 00:48
Profile WWW
Aesthetics Surgeon
Aesthetics Surgeon
User avatar

Joined: 24 Oct 2006, 01:00
Posts: 1349
Location: Croatia
More designs? it's ok by me. :wink:

Yes indeed, Mike and Strings are doing great stuff.

_________________
Carpe Diem


20 Dec 2007, 00:53
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

Joined: 02 Dec 2004, 01:00
Posts: 7801
Location: Returned to the previous place.


20 Dec 2007, 00:55
Profile WWW
Ship Engineer
Ship Engineer
User avatar

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
Profile
Combat Engineer
Combat Engineer
User avatar

Joined: 18 Jul 2005, 01:00
Posts: 1054
Nice ships, though bottom one is a bit green :)

Regards Wolfe


20 Dec 2007, 02:00
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 80 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.