Comments (9)
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.
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.
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.
@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.
I meant an undefined size. The array extends to the end of the chunk.
from opentesarena.
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.
CITYINTR
and CITYTXT
are not used, BTW.
from opentesarena.
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.
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)
- Mountains are floating HOT 6
- Rename default branch from master to main HOT 6
- Improving first-time contributor experience on Windows HOT 1
- Software renderer redesign for 0.15.0 HOT 6
- A Question about the capablities of OpenTESAreana HOT 1
- Is this still being worked on? HOT 2
- [Future Enhancement] Fan translations support (and improved .EXE unpacking) HOT 11
- Hit Chance Calculation. Clarification/Verification requested for wiki HOT 1
- Is external MIDI supported? HOT 1
- Switch to GitHub Actions HOT 4
- C++20 HOT 3
- Change Travis CI badge in Readme to GitHub Actions HOT 2
- Change ArenaPath to ArenaPaths HOT 8
- Mysterious performance hiccup every ~3 seconds HOT 1
- Job system
- Very slow performance HOT 5
- -march=native not supported on Apple M1 HOT 2
- Game world palette documentation HOT 11
- Triangle clipping improvement HOT 1
- Revise Readme to prioritize obtaining game files from Steam HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentesarena.