It is currently 10 Sep 2025, 17:48
   
Text Size

Theme Names

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Theme Names

Postby Jaedayr » 22 Oct 2010, 16:50

Should there be a naming convention/guideline for naming themes so that you have a bit of info about the theme? Maybe something like a one or two word theme and the colors? Themes are alphabetized in the selection list so I don't know if it would be better to have the colors first or the theme first. Just bringing this up in case it would be easier to agree on something now rather than making changes later. Also possible, having a short text description that would appear in a window similar to the opponent notes.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Theme Names

Postby Rob Cashwalker » 22 Oct 2010, 17:27

I didn't bother with fancy names and descriptions at first. I will look into adding those types of things as meta data in the them file. For use in the random encounters mode, the theme will also have to have some sort of trait that links it to the particular creature you encounter.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Theme Names

Postby DennisBergkamp » 25 Oct 2010, 17:07

Yeah, exactly. I haven't thought about this a great deal yet, but we should have some kind of structure.
Perhaps at first it will try to find a theme with a filename that contains the creature name (lowercased + underscored). If nothing is found, check for something more general, like creature type(s).
Say, you encounter a Llanowar Elves, these steps could happen:

1. Try to find a theme named "G_llanowar_elves"
2. Try to find any theme containing the string "llanowar_elves"
3. Try to find a theme based on creature type(s) : "G_elf" in this case
4. Still no luck? Then just use the monogreen theme called "G"

How does that sound? Of course, this would only be relevant for "quest" themes.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Theme Names

Postby DennisBergkamp » 26 Oct 2010, 06:24

By the way Rob, I just noticed we joined this forum on the same day?! Strange coincidence indeed!
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Theme Names

Postby Sloth » 26 Oct 2010, 08:43

DennisBergkamp wrote:How does that sound? Of course, this would only be relevant for "quest" themes.
How about looking through all themes if the creature shows up? And maybe at which probability.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Theme Names

Postby Rob Cashwalker » 26 Oct 2010, 15:05

Problem with that is there will be potentially a lot of data to search through... We'd be better off making the theme class global, read through all the themes on start-up, building hashmaps and other data structures that can be used for both searching and generation at any time during the game.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 43 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 43 users online :: 0 registered, 0 hidden and 43 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 43 guests

Login Form