Commit graph

266 commits

Author SHA1 Message Date
lzwdgc
649fb9fb97 Remove unused def. 2020-12-09 23:33:03 +03:00
lzwdgc
7a7abb8253 Some fbx animation stubs. 2020-12-09 22:27:20 +03:00
lzwdgc
1185a57df6 More verbose help message. 2020-12-09 22:27:02 +03:00
lzwdgc
50bd8a4a22 [mmo_extractor] Fix crashes. 2020-12-09 21:32:56 +03:00
lzwdgc
2137d165d5 Fix 32-bit build. 2020-12-09 21:32:31 +03:00
lzwdgc
e0d8f31839 Throw exception on unknown object. 2020-12-09 21:32:23 +03:00
lzwdgc
deba3b5e72 [mmo_extractor] Improve yaw calculations. Remove hardcoded angle. Fix atan2 arguments to correctly calculate yaw. 2020-12-09 18:48:15 +03:00
lzwdgc
4158345612 Improve animations reading. 2020-12-09 18:46:37 +03:00
lzwdgc
d6e290855c Clarify animated textures. 2020-12-09 18:45:55 +03:00
lzwdgc
2ce251997d Fix C++20 array comparison. 2020-12-09 14:19:20 +03:00
lzwdgc
1c0bea8a9c [model] Fix reading vertices. 5th attempt. (1 - initial, 2 - initial + minus x, 3 - modern, 4 - Yakim's.) 2020-12-09 05:12:20 +03:00
lzwdgc
0f06403862 [mod_converter] Allow to process and print loaded .mod files from Viewer.exe from AIM2 SDK. 2020-12-09 05:10:07 +03:00
lzwdgc
27b175238a Throw on unknown axis system. Explicitly add default one. 2020-12-09 05:09:20 +03:00
lzwdgc
40c9393a43 Misc. 2020-12-09 05:08:49 +03:00
lzwdgc
3283a0193a Misc. 2020-12-09 05:08:21 +03:00
lzwdgc
4e86ad3aae [mmo_extractor] Allow to set mapname. 2020-12-09 05:03:29 +03:00
lzwdgc
a604488ed8 Add natvis for model types. 2020-12-08 23:04:32 +03:00
lzwdgc
e96ed6e2fa Add comment. 2020-12-08 22:38:12 +03:00
lzwdgc
0c33c1870d Misc. 2020-12-08 22:17:12 +03:00
lzwdgc
ed66fa5ba1 Remove commented line. 2020-12-08 22:12:07 +03:00
lzwdgc
dd840fcbd2 Update default coordinate system value. Add according switch case and default clause. 2020-12-08 22:11:49 +03:00
lzwdgc
e2228f51c1 Remove unused function. 2020-12-08 22:03:47 +03:00
Yakim3396
77a4319ad0 Fix face mirroring use std::swap 2020-12-08 20:46:25 +03:00
Yakim3396
e9cab14ae6 Disable mirroring on axis and flip faces 2020-12-08 19:57:05 +03:00
lzwdgc
3640d875f6 Rename check method to be able to be included in UE4. 2020-12-08 18:42:34 +03:00
lzwdgc
58e1c6eafb Fix emitter usage. 2020-12-08 18:41:33 +03:00
lzwdgc
d16180dce7 Pass yaml by value. It has internal shared pointers to root document. 2020-12-08 18:41:22 +03:00
lzwdgc
c61cb0117e Fix headers. 2020-09-19 01:36:01 +03:00
lzwdgc
1f3ebf67e7 [db] Write sql from processed db. 2020-09-18 23:31:15 +03:00
lzwdgc
217ba181c0 [db] Prepare strings as utf-8. 2020-09-18 23:30:54 +03:00
lzwdgc
8fdac09842 Send errors to stderr. 2020-09-18 23:30:40 +03:00
lzwdgc
6819cd92fc [db] Keep raw strings. 2020-09-18 23:30:25 +03:00
lzwdgc
36f5234afb Use exceptions in default case. 2020-09-18 23:30:04 +03:00
lzwdgc
fd543790dd Add member function to process db into more friendly form. 2020-09-18 22:27:57 +03:00
lzwdgc
5f6c3e1fcf Better parameter name. 2020-09-18 22:27:30 +03:00
lzwdgc
fffc6f08f3 Fix includes order. 2020-09-18 22:27:12 +03:00
lzwdgc
068f0e185e Process db better. Respect value size. 2020-09-18 22:26:57 +03:00
lzwdgc
9a9082dfb7 Read more models. 2020-09-18 22:26:19 +03:00
lzwdgc
5327fe3e70 Move string conversion functions into common.cpp. 2020-09-18 22:26:10 +03:00
lzwdgc
c261342d6b Fix printing paths. 2020-09-16 14:42:46 +03:00
lzwdgc
962c12374f Handle models with additional faces. 2020-09-16 14:20:02 +03:00
lzwdgc
b5013c3fc6 Write raw r16 heightmap back again. 2020-09-16 14:19:34 +03:00
lzwdgc
d39c091312 Update to C++20. 2020-09-10 13:34:07 +03:00
lzwdgc
170fad79d7 Better variable name. 2020-09-07 01:12:55 +03:00
lzwdgc
771c8e4697 Do not fix uv coords when printing .obj. 2020-03-08 18:36:57 +03:00
lzwdgc
08c0e49cf4 [db_add_lang] Make functions static. 2020-03-07 01:22:03 +03:00
lzwdgc
25454a9e0d [db_add_lang] Set current path to lang dir. 2020-03-07 01:21:52 +03:00
lzwdgc
6b68a19cc2 Add todo. 2020-03-06 14:06:40 +03:00
lzwdgc
6bb005e5cc Remove using namespace. 2020-03-06 14:05:40 +03:00
lzwdgc
0265eb5e89 Better .obj offsets for different groups. 2020-03-06 14:04:15 +03:00
lzwdgc
1011a80add Finish link faces algorithm. Fbx export is not properly working with it. 2020-03-06 13:57:34 +03:00
lzwdgc
3b614b2da1 Disable link faces by default as uvs work is not over. Restore basic link faces. 2020-03-06 13:38:19 +03:00
lzwdgc
33787f94ae Refactor fbx output. 2020-03-05 03:04:21 +03:00
lzwdgc
baacacc44b More model data transformations. 2020-03-05 01:05:04 +03:00
lzwdgc
7325952708 Allow to load .mod files exported from M2 SDK Viewer. 2020-03-05 01:04:21 +03:00
lzwdgc
1bf7903a62 Do not print any SHAPE blocks. 2020-03-02 04:11:57 +03:00
lzwdgc
0336abf712 Misc. 2020-03-02 04:11:47 +03:00
lzwdgc
56a2422efa Misc. 2020-03-02 03:52:14 +03:00
lzwdgc
4fbe749be7 Add fbx conversion for win viewer. 2020-03-01 22:45:50 +03:00
lzwdgc
e8edda1ccf Allow to rotate data for .obj files. Add eWindows3DViewer axis system. 2020-03-01 22:22:26 +03:00
lzwdgc
4eb4e232a2 Refactor. Turn on link faces by default. 2020-03-01 21:39:47 +03:00
lzwdgc
e262989492 Fix link faces algorithm. 2020-03-01 21:20:19 +03:00
lzwdgc
6a74caf0d0 Initial dummy implementation of model patching. 2020-03-01 14:02:08 +03:00
lzwdgc
0faadd0756 Add blender enum entry. 2020-02-29 04:21:46 +03:00
lzwdgc
d2b64bdc25 Propagate axis system when printing. But disable during .obj print for now. 2020-02-29 04:19:19 +03:00
lzwdgc
3c5c756eaa Add stub of internal rotate facility. 2020-02-29 03:51:46 +03:00
lzwdgc
a1390640b5 Add aim_vector3f typedef. 2020-02-29 03:48:07 +03:00
lzwdgc
4fecc76b59 Fix models export. Improve export coordinate system selection. 2020-02-29 03:33:55 +03:00
lzwdgc
13c12f9bd3 Update for string changes. 2020-01-23 21:20:29 +03:00
lzwdgc
e96b6d0bea Improve wide paths support. 2020-01-12 22:16:48 +03:00
lzwdgc
d9b49e957d Update sw build. Update emitter addition. 2019-10-29 02:46:49 +03:00
lzwdgc
1c146ad9e3 Update sw script. Rename Context to Emitter. 2019-05-23 20:04:00 +03:00
lzwdgc
57c6947172 Add MECH sav segment hack. 2019-03-22 00:28:58 +03:00
lzwdgc
de7fd7742f Improve objects segment. Temporarily disable MECH segment. 2019-03-20 17:59:08 +03:00
lzwdgc
0c24d18b92 Improve ORGS and MMS_C_CONFIG segments. 2019-03-20 04:21:44 +03:00
lzwdgc
5c88d06a62 Improve save loader. 2019-03-20 03:59:12 +03:00
lzwdgc
c59d9702a6 Split save implementation. Improve save loader. 2019-03-19 22:18:46 +03:00
lzwdgc
f81baa57e4 Improve model loading. 2019-03-12 22:02:56 +03:00
lzwdgc
943f38dc96 Fix cl enum values. 2019-03-11 01:30:26 +03:00
lzwdgc
f741ade168 Add axis system option. 2019-03-10 22:39:16 +03:00
lzwdgc
a28531d834 Improve coordinates loading. 2019-03-10 22:15:51 +03:00
lzwdgc
712fa30090 Dump heightmaps to 16-bit pngs. 2019-03-07 18:49:22 +03:00
lzwdgc
f9c4071b3f Invert x axis for the left hand ue4 xyz system. Print r32 heightmap. 2019-03-06 23:01:25 +03:00
lzwdgc
ea7282f3d1 Add print info to mod converter. 2019-03-05 23:57:51 +03:00
lzwdgc
5f4ce8d1b0 Fix bison warning. 2019-02-24 18:07:34 +03:00
lzwdgc
1be3906e78 Improve loading of orgs, org bases, map goods. 2019-02-24 02:29:35 +03:00
lzwdgc
a9ee110c75 Initial sw build. Remove test code from unpaker. Turn on zero compression algorithm in unpaker. 2018-12-29 00:55:17 +03:00
lzwdgc
65c6ab3e59 Update readme for cppan. 2018-10-01 13:14:37 +03:00
lzwdgc
9c3034e7ef Save to png via opencv. 2018-08-02 14:14:38 +03:00
lzwdgc
bdf5e9ff37 Add split colormap option. 2018-08-02 01:56:52 +03:00
lzwdgc
f900353090 Overhaul with modern command lines. 2018-08-02 00:36:18 +03:00
lzwdgc
dc81075ee1 Switch to cppan. 2018-07-31 01:28:23 +03:00
lzwdgc
d3aa6a395f Consider shadow as color. 2018-07-10 00:29:51 +03:00
lzwdgc
5c8565d9d1 Fix mmp_extractor. 2018-07-09 20:28:34 +03:00
lzwdgc
541c3a0a89 Respect -a flag in mod converter. 2018-07-08 22:08:15 +03:00
lzwdgc
c8da06be5c Add license. 2018-06-30 22:12:58 +03:00
lzwdgc
4515228ca6 Update buffer. 2018-06-22 01:50:38 +03:00
lzwdgc
8933e1203e Initial AimR mod extractor. 2018-04-24 23:52:28 +03:00
lzwdgc
3d894efc5e Fix engine sockets. 2018-04-23 01:44:55 +03:00
lzwdgc
35bbd28a4f Fix case issue. 2018-04-15 22:59:13 +03:00
lzwdgc
cee62a2388 Correctly read all m1 and m2 models. 2018-04-15 22:39:38 +03:00
lzwdgc
17fc9980a0 Improve extraction. Improve transliteration. 2018-04-15 04:35:16 +03:00
lzwdgc
065732bcb6 Update. 2018-02-10 01:10:23 +03:00
lzwdgc
13be828ef6 Reimplement decode_f4(). It uses RLE. 2018-01-28 03:28:43 +03:00
lzwdgc
aad50f9160 Update mmo, mmp. 2018-01-27 03:40:30 +03:00
lzwdgc
539c5dde83 Rename height to length. 2017-12-12 01:26:11 +03:00
lzwdgc
6d8cbc5a39 Add inline variables. 2017-12-11 17:36:44 +03:00
lzwdgc
eb834c0d44 Correctly export object angles. 2017-12-10 04:00:54 +03:00
lzwdgc
ce1ba32d58 Fix object angles. 2017-12-09 22:21:06 +03:00
lzwdgc
5f7c59e2eb Extract light, heavy and rocket weapons. 2017-12-08 14:07:14 +03:00
lzwdgc
10c9a85358 Initial mesh SOCKETs implementation. 2017-12-08 02:57:34 +03:00
lzwdgc
d3f2b44120 Initial attempt on adding sockets to models. 2017-12-08 02:19:59 +03:00
lzwdgc
13529a1a76 Add cp conversions. 2017-07-30 17:50:09 +03:00
lzwdgc
f86e9e9f2a Add db_add_language tool. 2017-07-30 03:00:41 +03:00
lzwdgc
f9f9cedef8 Add simple mod reader. 2017-07-29 00:46:41 +03:00
lzwdgc
986fd859d7 Remove py and bat scripts. 2017-07-28 20:47:18 +03:00
lzwdgc
2dfc88e925 Initial preparation for refactoring. 2017-07-28 18:24:50 +03:00
lzwdgc
0efa83b097 Switch tm converter from tga to bmp as ue4 hardly understands transparent tga. Or they just was incorrectly converted. 2017-07-28 04:40:27 +03:00
lzwdgc
6ce917f5e8 Initial fbx model converter. 2017-07-28 03:06:37 +03:00
lzwdgc
98d993fa55 Fix incorrect end_ index in buffer. 2017-07-28 03:06:25 +03:00
lzwdgc
a0aab7807d Switch output y and z coordinates. 2017-07-27 19:27:20 +03:00
lzwdgc
3ae21d2eca Rotate normals also. 2017-07-27 18:17:56 +03:00
lzwdgc
26f276ff94 Print two variants for ue4 and usual fbx. 2017-07-27 00:34:21 +03:00
lzwdgc
91c0463604 Improve groups printing. 2017-07-26 15:07:09 +03:00
lzwdgc
eec6fb3ded Improve model creation. 2017-07-25 18:17:56 +03:00
lzwdgc
faf3226a1b Some clarifications. 2017-07-25 04:23:05 +03:00
lzwdgc
9213e46d2f Multiply scale by 100. 2017-06-01 21:31:25 +03:00
lzwdgc
16fc4fea61 Some fixes. 2017-06-01 21:30:01 +03:00
lzwdgc
0df077b7ab Switch to cppan. 2017-02-05 02:31:42 +03:00
lzwdgc
d2fb7d43d9 Improve MECH loading. Add ability to rewrite values. 2016-06-24 17:12:41 +03:00
lzwdgc
01ec4f3a44 Initial MECH section. 2016-06-24 01:38:40 +03:00
lzwdgc
50db190a25 Initial save loader for AIM2. 2016-06-23 00:21:01 +03:00
lzwdgc
33368e5f3b Add read_(w)string methods to buffer. Replace char names[20] to std::strings. Stub for save loader. 2016-06-21 18:40:22 +03:00
lzwdgc
540af823f4 Format pak.h. Update to the latest data manager. 2016-06-01 00:45:03 +03:00
lzwdgc
26588ebbfd Add flex+bison parser of aim1 scripts. 2015-12-17 22:46:01 +03:00
lzwdgc
165d48d8a5 Minor improvements in beautifier. 2015-12-09 18:47:45 +03:00
lzwdgc
5e9b0d1e06 Update script2txt. 2015-12-09 17:24:33 +03:00
lzwdgc
0fdf743260 Add tga writer. 2015-11-28 00:46:36 +03:00
lzwdgc
79bf2cc606 Update to the latest Data Manager. 2015-11-16 00:33:19 +03:00
lzwdgc
e1e46a3b75 Fix mmp extractor. Add mpj loader. Some fixes in buffer class. 2015-10-22 19:34:26 +03:00
lzwdgc
78812b5236 Add option to name generator how many names to generate. 2015-10-06 12:20:50 +03:00
lzwdgc
9649aa6301 Add simple banlist. 2015-10-06 12:14:36 +03:00
lzwdgc
c268da3ea1 Add name generator. 2015-10-04 21:38:54 +03:00
lzwdgc
6a8aa716e7 Make DATABASE_MANAGER_DIR unnecessary. 2015-09-29 13:01:07 +03:00
lzwdgc
5f2b0334b2 Add DXT5 converter. Complete tm converter, mmm extractor. Add boundary building objects from AIM2. 2015-08-09 17:44:56 +03:00
lzwdgc
1a237c283d Extract texture maps from mmp. 2015-08-08 01:08:36 +03:00
lzwdgc
7f214ed2ec Extract all information from MMP files. 2015-08-05 18:04:39 +03:00
lzwdgc
93850b0864 Fix obj_extractor: angle, scale, Towers. 2015-08-01 00:59:06 +03:00
lzwdgc
25956640c9 Fix rad2grad. 2015-07-20 16:54:52 +03:00
lzwdgc
f0388c4b33 Switch to CTable class. 2015-07-12 16:04:53 +03:00