Page 5 of 5

Re: Upgrading Mods to 0.10.25 and Later

Posted: Sun Jul 26, 2020 2:31 pm
by Ralzar
jimfcarroll wrote: Sun Jul 26, 2020 2:09 pm I'm trying to update Tedious Travel which uses HardStrings. By just grepping through the code, I know the index of the localized string but I can't find an appropriate const and I don't want to hard code the index to a literal int ('9' in this case).

Is there an example somewhere in the codebase of how to reference these string resources correctly? I couldn't find one grepping through the code.

Thanks
Just so you know, Hazelnut is working on a new travel mod to hopefully take over for Tedious Travel.

Re: Upgrading Mods to 0.10.25 and Later

Posted: Sun Jul 26, 2020 2:38 pm
by jimfcarroll
Ralzar wrote: Sun Jul 26, 2020 2:31 pm Just so you know, Hazelnut is working on a new travel mod to hopefully take over for Tedious Travel.
Yeah. I saw that. Thanks. I have my own updates to TT already anyway and just wanted to get this compiling against the latest codebase. I have no intention of picking up maintaining it.

Re: Upgrading Mods to 0.10.25 and Later

Posted: Sun Jul 26, 2020 5:00 pm
by Hazelnut
jimfcarroll wrote: Sun Jul 26, 2020 2:09 pm I'm trying to update Tedious Travel which uses HardStrings. By just grepping through the code, I know the index of the localized string but I can't find an appropriate const and I don't want to hard code the index to a literal int ('9' in this case).

Is there an example somewhere in the codebase of how to reference these string resources correctly? I couldn't find one grepping through the code.

Thanks
yeah, I already fixed this for my mods. An example:

Code: Select all

                //DaggerfallUI.AddHUDText(HardStrings.avoidDeath);
                DaggerfallUI.AddHUDText(TextManager.Instance.GetLocalizedText("avoidDeath"));

Re: Upgrading Mods to 0.10.25 and Later

Posted: Sun Jul 26, 2020 8:55 pm
by jimfcarroll
Perfect! Thanks.

Re: Upgrading Mods to 0.10.25 and Later

Posted: Tue Jul 28, 2020 7:34 am
by Interkarma
jimfcarroll wrote: Sun Jul 26, 2020 2:09 pmIs there an example somewhere in the codebase of how to reference these string resources correctly? I couldn't find one grepping through the code.
There's some more information in this topic about 0.10.26 text changes.

viewtopic.php?f=4&t=3947

Re: Upgrading Mods to 0.10.25 and Later

Posted: Mon Sep 28, 2020 5:44 pm
by fosley
Concerning DFU 0.10.26:

The OP says Unity 2019.4.2 is the correct version for DFU 0.10.25 and later. But I just downloaded DFU 0.10.26, installed Unity 2019.4.2, and it says the saved project is on Unity 2019.4.10f1. Should I upgrade Unity to 2019.4.10, or will 2019.4.2 continue to work? Conversely, if 2019.4.2 is fine, will it hurt anything to use 2019.4.10?

Re: Upgrading Mods to 0.10.25 and Later

Posted: Mon Sep 28, 2020 5:56 pm
by Ralzar
fosley wrote: Mon Sep 28, 2020 5:44 pm Concerning DFU 0.10.26:

The OP says Unity 2019.4.2 is the correct version for DFU 0.10.25 and later. But I just downloaded DFU 0.10.26, installed Unity 2019.4.2, and it says the saved project is on Unity 2019.4.10f1. Should I upgrade Unity to 2019.4.10, or will 2019.4.2 continue to work? Conversely, if 2019.4.2 is fine, will it hurt anything to use 2019.4.10?
viewtopic.php?f=4&t=4134

Re: Upgrading Mods to 0.10.25 and Later

Posted: Mon Sep 28, 2020 6:34 pm
by fosley
Ah, thanks. I thought I remembered a post about it, but then I couldn't find it.