Who's that?
The Cathedral of Attnam > Programming| Page 1 of 2 | Previous | 1 | 2 | Next |
|
Print
|
Nov 3, 2011 at 12:34 pm |
#3
![]() |
|
![]() |
Joined: Sep 22, 2008 Occupation: Medic Location: Army Interests: Watching others from the woods Posts: 288 Groups: | |
|
Posting in a legendary thread. | ||
Nov 4, 2011 at 12:16 am |
#9
![]() |
|
![]() giant spider |
Joined: Feb 15, 2011 Posts: 17 | |
|
Posting in legendary thread. | ||
|
Last edited by PapaLongDong : Nov 8, 2011 at 6:27 am. | ||
Nov 5, 2011 at 9:14 am |
#18
![]() |
|
![]() hedgehog |
Joined: Nov 3, 2011 Posts: 8 Groups: | |
|
The approach I give above will let you limit monsters to certain dungeons, but it only supports "any dungeon," "specific dungeon," and I suppose "no dungeon," by degenerate-case (do specific dungeon, never make that dungeon). It does not do sets of dungeons. I went with making the dungeon tag a string instead of a series of integer flags because it makes things easier for developers who don't know coding (the string approach doesn't need defines). So you cannot or things together like in your example. However, now that you mention it there's a really simple way to get the best of both. Replace DataBase->DungeonSet==game::GetDungeonSet() with game::GetDungeonSet.Find(DataBase->DungeonSet)!=[failedvalue] I'm not sure what the return value of a failed find is with festring. Too much uncommented template-laden code for me. So actual return value of a failed find where I wrote [failedvalue] but otherwise just like written above. This makes it so if you say DungeonSet="HorsesSkeletons" or DungeonSet="Horses|Skeletons" or however you want to write it, it will find Horses and Skeletons as substrings and allow those creatures in the set. The downsides are that it's slightly slow (but who cares, it's 2011 and this is a turn based game) and that sometimes you will occasionally run into hilarious misunderstandings where one name is a substring of another (if you defined Petrus' wives as "Ho" then they'll show up with horses). I just saw what vasilly did with the dungeon dat and it's really great. We absolutely should have that feature. Is his code available and in a working state? I saw that he was working on replacing all scripts with some fancy thing and we don't need that (especially since it doesn't seem to have happened) but everything else from his version sounds like a fantastic base. Bursting out the other data types would be super handy as well. Actually, what I've done for similar projects works even better, but I think it's scope creep in this case. For reference I'll explain anyway. Say each type of data has a specific type name that shows up in the declaration of an element. IVAN already does this nicely in dungeon.dat, where every new dungeon starts with the DUNGEON declaration, but does not do this for the other data files. All types of data can show up in all files. So, I could declare an Ommel creature in a file, then decide it needs Ommel_Flesh and declare that in the same file. Instead of bothering to have specific data files at all, the game just reads every data file out of the script folder, and yells at you if you define the same thing twice. For things that need to refer to eachother you need to do some clever stuff though (simplest version of clever stuff - set all references to placeholders then pass through after everything is loaded and resolve placeholders). And I would say CVS or Vasilly would be the best places to start. Also, if I understand correctly (I often don't) you added a number of extra dungeons in CLIVAN, yeah? Do you have a general system for that, or in general an idea how we'd do Phase 1 point 2? | ||
|
Last edited by SquashMonster : Nov 5, 2011 at 9:24 am. Edited 2 times total | ||
Nov 6, 2011 at 3:38 am |
#24
![]() |
|
![]() hedgehog |
Joined: Nov 3, 2011 Posts: 8 Groups: | |
|
How much would be in the game development fund? I do contract game development now, that's part of why I don't have much time to do proper work helping out IVAN. I would be willing to give a significant discount from my usual rates for such a cool project. Don't let it sound like I'm pushing for that though. I'm happy to do what I can for free. | ||
|
Last edited by SquashMonster : Nov 6, 2011 at 5:05 am. Edited 2 times total | ||
Nov 6, 2011 at 7:16 am |
#25
![]() |
|
![]() |
Joined: Feb 11, 2008 Location: Gnosticus IV Posts: 345 | |
|
I am slow but good to have you back, Squash. | ||
|
Print
|
||
| Page 1 of 2 | Previous | 1 | 2 | Next |
The Cathedral of Attnam > Programming > Who's that?


Nov 3, 2011 at 10:08 am

hedgehog

HEADBUTT
The Imperialist


Ex-Tyrant of the IVANers
kobold lord
giant spider
.