Commit graph

181 commits

Author SHA1 Message Date
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