Author Topic: Importing FRUA Designs  (Read 10211 times)

Offline steve_mcdee

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 1938
Re: Importing FRUA Designs
« Reply #30 on: October 04, 2015, 01:28:22 PM »
Looks better, except that I can't see any blood on the axe.

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #31 on: October 05, 2015, 10:11:08 AM »
So, I started importing the levels from the original game.  Worked fine until I got to level 5 (import of level009.txt), which gave me the following error message:
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #32 on: October 05, 2015, 03:19:56 PM »
I did some research into this error code by throwing the levels into Visual Studio 2015 and tracking down the line numbers.  I had 7 maps fail to import using the "Import Maps" function.  Every time, the error line number pointed to a specific line of the WHO PAYS event.  Here are the first three errors from the first three maps that failed to import (I will highlight the error line in all three):

level009:
Code: [Select]
           "text":"WHO WILL PAY 2 PLATINUM?",
               "text2":"THE INNKEEPER TELLS YOU TO TAKE ANY ROOM AVAILABLE.",
               "text3":"THE INNKEEPER GROWS ANNOYED AND ASKS YOU TO LEAVE."
            },
            "particular":{  //  << ERROR HAPPENS HERE >>
               "possible":"true",
               "gems":"0",
               "jewels":"0",
               "platinum":"2",
               "successChain":"0",
               "successAction":"Chain Event",
               "failChain":"0",
               "moneyType":"Platinum"
            }

level012:
Code: [Select]
     "text":"A YOUNG INNKEEPER TELLS YOU THAT IT WILL COST 1 PLATINUM TO REST IN THE INN. WHO WILL PAY 1 PLATINUM?",
               "text2":"SHE HANDS YOU A KEY.",
               "text3":"SHE SHRUGS HER SHOULDERS AND SHOWS YOU THE WAY OUT."
            },
            "particular":{  // < ERROR HAPPENS HERE >
               "possible":"true",
               "gems":"0",
               "jewels":"0",
               "platinum":"1",
               "successChain":"0",
               "successAction":"Chain Event",
               "failChain":"0",
               "moneyType":"Platinum"
            }


level019:
Code: [Select]
              "text":"WHO IN THE PARTY SHALL PAY A PLATINUM PIECE FOR A ROOM?",
               "text2":"YOU HAND THE WOMAN A PLATINUM PIECE, AND SHE TELLS YOU TO TAKE ANY ROOM YOU'D LIKE.",
               "text3":"SADDENED, THE WOMAN ASKS YOU TO LEAVE."
            },
            "particular":{  // << ERROR HAPPENS HERE >>
               "possible":"true",
               "gems":"0",
               "jewels":"0",
               "platinum":"1",
               "successChain":"0",
               "successAction":"Chain Event",
               "failChain":"0",
               "moneyType":"Platinum"
            }
         },


So there is something wrong with the line that specifies that the WHO PAYS event is looking for something particular.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #33 on: October 05, 2015, 04:46:25 PM »
Sorry.  This got fixed on Saturday but the release is
waiting for the automatic database/level import functionality.
I would have mentioned it on Saturday but I was afraid
folks would get tired of my many posts.

Nevertheless, I am happy to see someone digging into
the text files.  Your expertise in FRUA will be invaluable.
If you look into the MASSIVE json file created by FRUAExport,
you will see that the failed action is properly defined.
ConvertFRUA ignored it....that was the problem.

Quote
throwing the levels into Visual Studio 2015

Any old text editor will do.

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #34 on: October 05, 2015, 05:03:53 PM »
Sorry.  This got fixed on Saturday but the release is
waiting for the automatic database/level import functionality.

Good to know.

Quote
Any old text editor will do.

Well, when you have to find an error that's located on line 7211, VS2015 keeps things sorted and gives me line numbers.  Notepad...not so much...
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #35 on: October 05, 2015, 06:45:49 PM »
Get Update20151005.zip and put the five files
into the appropriate places in your conversion folder.

http://dianneandpaul.net/UAF/FRUAConversion/Update20151005.zip

I hope I got all the right pieces.

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #36 on: October 05, 2015, 07:14:22 PM »
Wow, that broke ConvertFRUA.exe completely.  It lists four different missing files that I need to make the program work:

Missing Files:
mfc140d.dll
MSVCP140D.dll
ucrtbased.dll
VCRUNTIME140D.dll
« Last Edit: October 05, 2015, 07:17:30 PM by ProphetSword »
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #37 on: October 05, 2015, 07:18:19 PM »
Oh, dear.....

Let me check.  This was the first build using
Visual Studio 2015.

I'll check.  I meant to use a static library.
See you in a few minutes.

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #38 on: October 05, 2015, 07:37:22 PM »
I am not sure.  It appears to be the static build (it is
five times larger than the DLL build) but ????

I made a new one:
http://dianneandpaul.net/UAF/FRUAConversion/ConvertFRUA_20151005.zip

but I have no reason to think it will work better.
It is worth a try, I guess.

Edit:  Futzing around.....it appears that I originally posted the
debug version.  So now I have reason to hope the new one will work.
« Last Edit: October 05, 2015, 08:00:02 PM by Paul R. Stevens »

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #39 on: October 05, 2015, 08:39:34 PM »
That worked.  Didn't give me any errors, and it properly fired up the editor and imported all the level data.  Great work.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #40 on: October 05, 2015, 09:10:00 PM »
Quote
properly fired up the editor and imported all the level data

'Properly'......I doubt it.

The ConvertFRUA printed a lot of errors.
JReaderErrors.txt in the DUNGEON_CRAFT_DESIGN/data has errors.
The UAFErr_Edit.txt lists a lot of errors.
Example:

9f6212c2      0 0000000000000000 Forcing monster EVIL CHAMPION to have at least one attack

But I am tired right now.
Might you look at the various errors and see what should
take priority? 
I am going to go read a book and try to recover from the
weekend with FRUA conversion.

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #41 on: October 05, 2015, 10:27:20 PM »
Fixed:

In JReaderErrors.txt

All "Cannot determine event trigger type"

Forwarded to CocoaSpud:

In JReaderErrors.txt:
Cannot find data named yes-action  (Question Yes No event)
« Last Edit: October 06, 2015, 10:59:12 AM by Paul R. Stevens »

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #42 on: October 06, 2015, 08:11:43 PM »
So far, I haven't run into any events that don't work.  I will have to look and see if I can find a question event.  Does the import keep a log somewhere that I can reference?
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2887
  • FRUA Lives!
    • Lands of Adventure
Re: Importing FRUA Designs
« Reply #43 on: October 06, 2015, 08:17:36 PM »
I tried one of the Question (Yes/No) events, and it seemed to work fine.  Unless I know which events to look at, I won't be able to figure out if they're working or not. 

EDIT:
I found a lot of errors relating to images, and errors like this:

Cannot determine event trigger type
Error occurred at line number 262994


But that doesn't tell me what to look at.  Where are these line numbers located?
« Last Edit: October 06, 2015, 08:20:45 PM by ProphetSword »
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: Importing FRUA Designs
« Reply #44 on: October 06, 2015, 10:26:30 PM »
I fixed the "Event Trigger type" errors as noted in a previous
post.

Those line numbers printed by ConvertFRUA refer to
the .json file in the folder DUNGEON_CRAFT_DESIGN\data.

The file is "FRUA.json".  It is produced by CocoaSpud's
program FRUAExport.exe from the FRUA design.

Reading that file ain't easy for a human.  There are a lot of
indirect references. 

My notion is that we should concentrate on errors affecting
the map and events.  But I guess that is based on  my assumption
that you would like your work to begin there.  Perhaps you are
more interested in working on the artwork or the monster
definitions that do not have default definitions.

As far as a log of events is concerned.....no.  The Levelnnn.txt
files list all the events for a level but these, too, are hard
reading for a human.  In particular, it can be difficult to determine
the location of any event that is not at the root of a chain.  Not
impossible, but certainly a chore.  You have to work your way
backwards through the links.  If there is a particular event
or event type that you want to locate, let me know; I am
an expert at reading these dumps.

I would offer to provide a way to list events in a more
convenient format if the work on my part would be cost-
effective.  It would probably require eight hours of my time.

Quote
I haven't run into any events that don't work
That is better news than I expected.

Edit:  PS.  I am busy.  The event import has a couple of
quirks that need ironing out.  Just to let you know I am not
idle waiting for additional bug reports.
« Last Edit: October 06, 2015, 10:29:30 PM by Paul R. Stevens »