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

.wai .w3o appendix #2

Open
WaterKnight opened this issue May 12, 2023 · 1 comment
Open

.wai .w3o appendix #2

WaterKnight opened this issue May 12, 2023 · 1 comment

Comments

@WaterKnight
Copy link

Did a .ksy file for .wai (which is still incomplete) according to https://867380699.github.io/blog/2019/05/09/W3X_Files_Format#war3mapwai and found there was a spare 4 bytes at the end. This becomes 1 when you import custom data (in the General tab of the AI editor in the WE). There is a bit of meta data and then follows a .w3o structure. See: https://github.com/WaterKnight/Warcraft3-Formats-KaitaiStruct/blob/911a8b90ec0f08f53464ee33a56e734379a7b837/w3-wai.ksy#L110

@Luashine
Copy link
Owner

This is what my spreadsheet wai.ods looks like:

IF (FORMAT != 0)	
int	unknown_wai_v1_1
IF (unknown_wai_v1_1 != 0)	
string	unknown_wai_v1_2
string	unknown_wai_v1_3
...read structure:	
SEE APPENDIX STRUCTURE	
ENDIF	
ENDIF	

The "1" you mention is probably IF (unknown_wai_v1_1 != 0). The two strings are file paths (260 limit, confirmed).

I didn't look super deep, but yeah it looks like the w3o structure and the following w3u looks to match. If I'm reading this right, (supposedly about everything) for version = 0 it only reads 2 structures (i.e. w3u and w3t?) and otherwise (ver >= 1) it reads all 7. If so this is new for my w3o description as well.

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