Daggerfall Unity Test Build 2

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Locked
User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

FloppyDisk wrote: Is build 64 Bit only?
Hi! Sorry to hear that. This build should run on both 32 & 64 bit systems. I will upload a new build shortly (next 30 minutes) to hopefully fix this.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

Michael_TEFL wrote:And does this build work under Windows XP 32 bit? Because it doesn't launch saying that it isn't 32-bit application.
This should be fixed shortly. I'm using Windows 7 for minimum requirement, but XP should work OK. Just YMMV depending on other factors.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

Azdul wrote:
I cannot import original save games, or start a new game - and I wonder if it is some file left out by old DFUnity build.
I have updated the Linux build, hopefully this is fixed now. Could you please re-download and try again?

Azdul
Posts: 19
Joined: Sun Oct 18, 2015 3:43 pm

Re: Daggerfall Unity Test Build 2

Post by Azdul »

Interkarma wrote:I've set this to use InvariantCulture, but it appears to still be throwing an exception. Could you let me know your locale setting? I will try again to resolve. Cheers. :)
My locale settings (on Fedora 21):

Code: Select all

[fan@localhost Pobrane]$ locale
LANG=pl_PL.utf8
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC="pl_PL.utf8"
LC_TIME="pl_PL.utf8"
LC_COLLATE="pl_PL.utf8"
LC_MONETARY="pl_PL.utf8"
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT="pl_PL.utf8"
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=
You mean these lines in DFCareer.cs ?
float value = (cfg.AdvancementMultiplier >> 16) + ((cfg.AdvancementMultiplier & 0xffff)) / 65536f;
this.AdvancementMultiplier = float.Parse(string.Format("{0:0.00}", value), NumberStyles.Float, CultureInfo.InvariantCulture);

It is really strange as the CLASS*.CFG are in binary format, and I did not had this issue with previous build.
I'm still confused how comma could get there - C# is such strange language. :D

Edit: Is the second line rounding / truncating the value to 0.01 ?

Edit2: I've found workaround.
When I execute

Code: Select all

export LANG=en_US.utf8
in console before starting DFUnity, the problem goes away.

Edit3: I've installed monodevelop, and wrote short program to test it:

Code: Select all

float value = 1.2222f;
//line below works fine for both LANG=pl_PL.utf8 and LANG=en_US.utf8
float value2 = float.Parse(string.Format("{0:0.00}", value), NumberStyles.Float, CultureInfo.CurrentCulture);
//line below throws an exception, unless LANG is set to en_US.utf8
float value3 = float.Parse(string.Format("{0:0.00}", value), NumberStyles.Float, CultureInfo.InvariantCulture);			
I'm still confused what's going on there, but I guess you cannot learn C# in 2 hours :D
Last edited by Azdul on Sat Oct 24, 2015 7:58 am, edited 3 times in total.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

LypyL wrote: edit: Just saw the section in the readme, will send you the saves.
Cheers mate. I'll work out which save file has the problem and try to fix the importer from there.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

Michael_TEFL wrote:And does this build work under Windows XP 32 bit? Because it doesn't launch saying that it isn't 32-bit application.
FloppyDisk wrote: Is build 64 Bit only?
I have updated Windows build now. Please re-download and let me know how you go.

FloppyDisk
Posts: 2
Joined: Sat Oct 24, 2015 6:19 am

Re: Daggerfall Unity Test Build 2

Post by FloppyDisk »

Interkarma wrote:
Michael_TEFL wrote:And does this build work under Windows XP 32 bit? Because it doesn't launch saying that it isn't 32-bit application.
FloppyDisk wrote: Is build 64 Bit only?
I have updated Windows build now. Please re-download and let me know how you go.
I downloaded the new version and it works now. Thanks! :)

Michael_TEFL
Posts: 39
Joined: Sun Oct 18, 2015 9:16 am

Re: Daggerfall Unity Test Build 2

Post by Michael_TEFL »

Now the Windows build works.
OS: Windows XP SP3 32 bit
CPU: Pentium G840
RAM: 4 GB
GPU: Intel HD Graphics

I can load my custom male character, enter a dungeon.
Pop-up messages work properly (just killed an iron atronach).
So far it works, i'll try out as many options as i can and post a bit later.
Thank you, Interkarma.
Spoiler!
Screenshot_1.jpg
Screenshot_1.jpg (55.19 KiB) Viewed 4822 times
Screenshot_2.jpg
Screenshot_2.jpg (99.08 KiB) Viewed 4822 times

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

Michael_TEFL wrote:Now the Windows build works.
OS: Windows XP SP3 32 bit
CPU: Pentium G840
RAM: 4 GB
GPU: Intel HD Graphics

I can load my custom male character, enter a dungeon.
Pop-up messages work properly (just killed an iron atronach).
So far it works, i'll try out as many options as i can and post a bit later.
Thank you, Interkarma.
Cool! No worries. :)

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Daggerfall Unity Test Build 2

Post by Interkarma »

Azdul wrote: Edit2: I've found workaround.
When I execute

Code: Select all

export LANG=en_US.utf8
in console before starting DFUnity, the problem goes away.
Cool! Did you also have a chance to try the updated Linux build? This should handle the exception gracefully and just assign the value.
Edit: Is the second line rounding / truncating the value to 0.01 ?
Yep. I'll be moving the CLASS definitions to a text-based file format before too long and this is to force the binary value back to a clean 0.00 string. Otherwise you end up with values like 1.5001726 in the string output which really bugged me. It's not really important right now though.

One more thing. With your default Polish locale set, does it seem to be reading the INI properly now? Or does it still barf on . instead of , while parsing? Cheers mate. :)

Locked