Author Topic: Dungeon Hack in FRUA?  (Read 945 times)

Offline vaustein

  • Newbie
  • *
  • Posts: 40
Dungeon Hack in FRUA?
« on: May 12, 2014, 01:14:30 AM »
Back in 2010, I discovered MazeGen - UA Maze Generation Utility by Pawel Szymczykowski. Basically, MazeGen procedurally generates a maze and inserts it into a dungeon module in a FRUA design.

This gives me an idea: since someone has figured out how to generate FRUA maps procedurally, what about placing monsters and loot randomly within a procedurally-generated dungeon?

This might be a fun side project. Is there documentation on the hex codes corresponding to monsters and items and their locations in the GEO*.DAT files along with descriptions of the data structures in memory?

EDIT: It turns out that I had Nol Drek's GEODATA.TXT file describing the data structures stored in GEO*.DAT files. It's part of a compilation called "hackdocs.zip" that I must have downloaded either from this forum or from Rosedragon. Yes, this should do nicely. 8)

EDIT2: Some of the notes are incomplete or ambiguous. Here is a section from GEOEVENT.TXT. Does a single byte at offset 8 store both the pic/bigpic/no-art flag in addition to the monster morale modifier?

Code: [Select]
---------------------------
#01: COMBAT EVENT
---------------------------
05  #1 String# (Player Reads)
06  -
07  Picture#
08  If art is a pic, bigpic, or "no art" (+128)
    Monster Morale Modifier #%
09  # of Monster #1
    Suprise:
       0   Neither
       64  Party
       128 Monster
    Combat Location:
       0   Indoors
       32  Outdoors
« Last Edit: May 12, 2014, 08:04:57 PM by vaustein »

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2129
    • Nol Drek's Web Site
Re: Dungeon Hack in FRUA?
« Reply #1 on: May 12, 2014, 08:17:45 PM »
EDIT2: Some of the notes are incomplete or ambiguous. Here is a section from GEOEVENT.TXT. Does a single byte at offset 8 store both the pic/bigpic/no-art flag in addition to the monster morale modifier?

Code: [Select]
---------------------------
#01: COMBAT EVENT
---------------------------
05  #1 String# (Player Reads)
06  -
07  Picture#
08  If art is a pic, bigpic, or "no art" (+128)
    Monster Morale Modifier #%
09  # of Monster #1
    Suprise:
       0   Neither
       64  Party
       128 Monster
    Combat Location:
       0   Indoors
       32  Outdoors

I believe that the Geo Event Data was decoded by Halfscan.

To answer your question, yes. There is a bit switch. If Byte 8 = 10, then the monster morale is 10. But if Byte 8 = 138, then the monster morale is 10 and the combat event has a pic, big pic, or no art.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com

Offline vaustein

  • Newbie
  • *
  • Posts: 40
Re: Dungeon Hack in FRUA?
« Reply #2 on: May 12, 2014, 10:35:51 PM »
I'm still confused.
Code: [Select]
08  If art is a pic, bigpic, or "no art" (+128)These 3 possibilities cover all possible cases: regular pic, big pic, no pic. Yet you either add 0 or add 128? That's makes it a binary choice.  ???

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2129
    • Nol Drek's Web Site
Re: Dungeon Hack in FRUA?
« Reply #3 on: May 13, 2014, 12:04:38 AM »
I'm still confused.
Code: [Select]
08  If art is a pic, bigpic, or "no art" (+128)These 3 possibilities cover all possible cases: regular pic, big pic, no pic. Yet you either add 0 or add 128? That's makes it a binary choice.  ???

A combat event can display a Sprite.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com