Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewChrValue.tbl isn't read correctly when creating character #122

Closed
ohad258 opened this issue Jul 21, 2018 · 2 comments
Closed

NewChrValue.tbl isn't read correctly when creating character #122

ohad258 opened this issue Jul 21, 2018 · 2 comments

Comments

@ohad258
Copy link
Contributor

ohad258 commented Jul 21, 2018

When choosing the race in character creation procedure, the new stats of the characters are set.
The stats are taken from NewChrValue.tbl.
Row for example:

10101, ¾ÆÅ©Åõ¾Æ·º, 65, 65, 60, 50, 50, 10, 156210050, 0, 206001000, 206002000, 0, 206004000, 206005000, 0, 0, 0, 0, 0

CGameProcCharacterCreate::SetChr() tries to find the stats only by the chosen race, but the dwID of the table is built in some format to enable different settings between different classes.
I guess the dwID is built from "{race}0{class}", thus orc warrior is 10101.

__TABLE_NEW_CHR* pTbl = m_Tbl_InitValue.Find(pInfoBase->eRace);

Anyway, new characters cannot be created at all currently.

Calling CGameProcCharacterCreate::SetChr() only when choosing class might be a good solution

@onurcanbektas
Copy link
Contributor

Thanks for the bug report. I do not think that anyone has worked on that point yet.

@ohad258
Copy link
Contributor Author

ohad258 commented Jul 21, 2018

@twostars merged the fix to master. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants