Giter Site home page Giter Site logo

Comments (9)

Allofich avatar Allofich commented on May 17, 2024

Welcome to the project!

Those files can already be opened and viewed with a text viewer, so I don't really understand what you were going for, but maybe I'm missing something. Those formatting codes will need to be understood, though, if Carmina16 hasn't already figured them out.

The artifact files are for rumors you hear when getting artifact quests, and the others are text used when bartering at stores.

@afritz1, is there anything in particular you would like help with at the moment?

The only other issue I currently have that I could report is so minor that I haven't bothered with it: I notice that in OpenTESArena you start the Imperial Prison level facing north, while you start it facing south in the original game.

from opentesarena.

afritz1 avatar afritz1 commented on May 17, 2024

Hey @andreaukk. For the most part I've just been using tools like WinArena and my own little hex printer program to look at Arena's data files. I'm not sure what those special character sequences are yet other than maybe a terminator for each segment (Arena generally uses null-terminated strings, but strings can also end with characters like ampersands).

I briefly looked into NAMECHNK.DAT a few months ago and I believe it's a Cartesian product with all the races and genders (13x13 prefixes and suffixes). I thought there was a UESP page on it, but I don't remember.

Eventually we'll be reading in all of these files with the MiscAssets class (or something similar). That class is pretty much a hodgepodge of info at the moment since I haven't figured out a good way to organize all the miscellaneous files yet (text, special data, etc.).

For the incorrect direction @Allofich mentioned, that's just from the arbitrary facing I'm using (here I think), since I don't know what the default in Arena is, nor how it's found when going through level transitions. It's not clear if Arena even chooses a default direction from what I've seen in-game. Sometimes it just seems random.

from opentesarena.

Carmina16 avatar Carmina16 commented on May 17, 2024

The DAT files are the trade system resource files. Each of them is an array of 75 zero-terminated strings, grouped as 5 * (5 * 3). The outer group is the function, the inner is depending on the player/vendor charisma, and the last 3 strings are chosen at random.

NAMECHNK.DAT indeed is a list of chunks, being

WORD ChunkLen; // header included
BYTE StringCount;
char Strings[0];

The name generator choses a random string from the chunks with certain indices. I'll post the algorithm in the wiki.

from opentesarena.

afritz1 avatar afritz1 commented on May 17, 2024

@Carmina16, is the array size of char Strings[0] a typo? Or is it intended to be a dynamic array? I guess it depends on the string count.

from opentesarena.

Carmina16 avatar Carmina16 commented on May 17, 2024

I meant an undefined size. The array extends to the end of the chunk.

from opentesarena.

afritz1 avatar afritz1 commented on May 17, 2024

See commit e842e76. I added parsers for the six files listed at the top of this issue (ARTFACT1.DAT, ARTFACT2.DAT, EQUIP.DAT, MUGUILD.DAT, SELLING.DAT, and TAVERN.DAT), as well as NAMECHNK.DAT (in commits 237430b and d359d52).

I suppose I could close this issue now or just leave it open until the remaining files are being read in (CITYINTR, CITYTXT, SPELLMKR.TXT, SPELLS.LST).

from opentesarena.

Carmina16 avatar Carmina16 commented on May 17, 2024

CITYINTR and CITYTXT are not used, BTW.

from opentesarena.

Allofich avatar Allofich commented on May 17, 2024

I just tried editing CITYTXT and, as Carmina16 says, the results in-game did not change. There seem to be duplicate entries in TEMPLATE.DAT, which are maybe used instead.

from opentesarena.

afritz1 avatar afritz1 commented on May 17, 2024

SPELLSG.65 and SPELLMKR.TXT are now being read in commits b719a35 and 4222995 (looks like SPELLSG.65 and SPELLS.LST are identical). No worries about CITYINTR and CITYTXT like you two mentioned. This issue can probably be closed now.

from opentesarena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.