24-08-2010, 07:43 PM | #1 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
DragonEngine
This is a test version of an interpreter program meant to replicate the system present in the "Golden Dragon" fantasy gamebook series.
Programmed in C++ during two days of weekend and three evenings of regular days, the engine is - to be honest - so far the most complicated single program I wrote. I did my best to make sure no glitches crept in, but if you find any - do let me know! How it works: A compiled executable of the engine must be placed together with the files for the given module. (right now, at least - I do, however, intend to add support for running multiple modules from individual subdirectories) Each module must have the following files: player.dat items.dat weapons.dat This is what you need to start the game. Now, the important part is what makes up the actual game data. Each file name corresponds to a node (scene) in the game - I use numbers, but the engine works so that you could use other names as long as they don't contain spaces(would mess with how some conditions work). Well, that's it for documentation. Let's see what can be done with the engine, shall we?
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 24-08-2010 at 07:51 PM. |
||
|
|
24-08-2010, 08:34 PM | #2 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
I decided that having to name each weapon twice was dumb to begin with. So, a slightly updated engine is attached.
Now the weapons only have to be declared in weapons.dat, and the check if the player has a weapon was - shall we say, fixed - so that it doesn't have to open the weapons file every time. |
||
|
|
24-08-2010, 09:30 PM | #3 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
um, can you add values to weapons? You know, damage, etc? I know this is just an early example, and if not your goona add that stuff later, but yea, just wonderin
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
|
|
24-08-2010, 10:35 PM | #4 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Damage bonus for weapons, damage penalty for armour?
Possibly so. |
||
|
|
26-08-2010, 02:27 AM | #5 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
so i saw in the CB that your almost done your first module for the dragon engine! what can we expect? Is it just a mini adventure to demo all the features thus far?
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
|
|
26-08-2010, 08:13 AM | #6 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
I'm halfway through inputting the entire first book from the Golden Dragon series. That's going to be a proper, complete adventure with 290 separate scenes.
Weapon and armor bonuses will be added to the engine, just as several other features (some of which will require more extensive changes, but will make stuff easier in the long term). Doing this also helps me with finding bugs in the engine and features I have to add to properly handle the system.
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 26-08-2010 at 08:22 AM. |
||
|
|
27-08-2010, 09:14 AM | #7 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
New beta. Partially complete first module.
|
||
|
|
29-08-2010, 06:40 PM | #8 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
I've made it so that the "null" value (no weapon/no armour) can be declared in the weapon file and armour file by using an exclamation mark as the weapon/armour name.
Also, the weapon and armour work differently from each other: The weapons don't increase the damage you deal, but rather modify your combat rolls (greater chance to hit the opponent), while the armour reduces the damage you receive from opponents (it doesn't apply to non-combat damage, though). |
||
|
|
29-08-2010, 10:57 PM | #9 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
i think i found an error in your vampire crypty game...
Paragraph 190 was eaten by a Grue thats all so far..
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
|
|
30-08-2010, 12:07 PM | #10 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
That wasn't a complete version, just a progress release.
The paragraph warp at the start is there exactly to get around this sort of problem. |
||
|
|