Commit Graph
100 Commits
Author SHA1 Message Date
Jan 9f0852485d Remove outdated StructuredDataDef Dumper 2022-03-20 19:34:53 +01:00
Jan f5a72f4fef Add padding dumping to new StructuredDataDef dumper 2022-03-20 19:15:05 +01:00
Jan d82e876558 Dump StructuredDataDef struct member types 2022-03-20 18:32:25 +01:00
Jan 0a226652f2 Rename CommonStructuredDataStructEntry to Property 2022-03-20 17:40:12 +01:00
Jan 996528eba5 Dump struct member names 2022-03-20 17:38:48 +01:00
Jan c52d129db1 Add alignment utility 2022-03-20 17:38:23 +01:00
Jan fef646fded Print debug info about structured data def when compiled with the debug flag for it 2022-03-20 16:59:37 +01:00
Jan 3fc9eac5f0 Explicitly state how many threads are being used to build 2022-03-20 16:11:40 +01:00
Jan b5e18e6b22 Calculate checksums for structured data def 2022-03-20 16:01:29 +01:00
Jan c91cb40b76 Add endianness utility methods 2022-03-20 16:00:56 +01:00
Jan b2140260a4 Dump CommonStructuredDataDefSet instead of the game's internal structures 2022-03-19 23:39:50 +01:00
Jan c38367d55b Move common structureddatadef classes to objcommon 2022-03-12 14:02:52 +01:00
Jan dff7912dbc Parse padding instructions for StructuredDataDef 2022-02-06 10:49:58 +01:00
Jan 73564cf0f0 Dump StructuredDataDef paddings 2022-02-05 19:48:08 +01:00
Jan f235ffc431 Fix structureddatadef loader not setting enum reserved size correctly 2022-01-29 12:42:28 +01:00
Jan 497c9fc6cf Rename StructuredDataDef classes to remove "Def" from classes that do not need it 2022-01-22 14:47:47 +01:00
Jan 2da6ab8479 Fix empty StructuredDataDef struct having a size of 8 when it is the root struct 2022-01-22 14:41:20 +01:00
Jan f061ff91f5 Create default StructuredDataDef struct when none was specified so there is always a root struct 2022-01-22 14:35:43 +01:00
Jan 5327ce8ec9 Fix StructuredDataDefDumper not dumping empty structs or arrays 2022-01-22 14:29:07 +01:00
Jan 8aba79faf9 Fix SndCurveDumper wrong assertion 2022-01-22 14:16:25 +01:00
Jan dd23e3f66d Fix StructuredDataDef multi dimensional arrays not getting parsed correctly 2022-01-22 13:57:10 +01:00
Jan 9ed169fcba Calculate StructuredDataDef sizes and offsets 2022-01-22 13:40:08 +01:00
Jan ec8e58e0f1 Write StructuredDataDef data with additional comments stating debugging details for the format 2022-01-22 13:39:51 +01:00
Jan 96ef7a46fb Convert StructuredDataDef for IW4 2022-01-20 23:38:45 +01:00
Jan b894a524e8 Parse structured data def reserved enum count 2022-01-20 22:37:33 +01:00
Jan 040f945009 Dump structured data def reserved count 2022-01-20 22:20:30 +01:00
Jan 51003e5f6d Dump structured data def structs in correct order and sort entries by offset 2022-01-20 22:08:40 +01:00
Jan 944586fcde Parse StructuredDataDef structs 2022-01-19 19:58:41 +01:00
Jan 1c1fbd1007 Add initial draft of structured data def parser to parse enums only for now 2022-01-18 22:55:50 +01:00
Jan 91cfb2e8dd Move AbstractScopeSequenceHolder to Parse and make it a template class to be reusable 2022-01-18 22:55:25 +01:00
Jan 0aad5a42cb Dump structured data def structs 2022-01-15 23:14:37 +01:00
Jan 02769fe21d Dump StructuredDataDef enums 2022-01-15 19:23:18 +01:00
Jan 5c2f7de87d Add base for StructuredDataDefDumper 2022-01-15 18:19:24 +01:00
Jan b48d55671e Add AbstractTextDumper to implement stream holding and indendation 2022-01-15 17:44:56 +01:00
Jan c9a0392fc1 Dump IW4 tracers 2022-01-15 16:04:49 +01:00
Jan 5b68b21755 Move IW4 weapon and vehicle fields to separate header files 2022-01-15 16:04:35 +01:00
Jan 16d421f22d Declare BrushWrapper as todo 2022-01-15 11:48:12 +01:00
Jan 88771849fb Add base for physcollmap dumper 2022-01-05 20:14:32 +01:00
Jan daa7008038 Add dumper and reader for IW4 GfxLightDef 2022-01-02 18:01:24 +01:00
Jan 77b6b7c87a Load SoundCurve files for IW4 2022-01-02 13:27:29 +01:00
Jan 2a6ed376d2 Dump iw4 sound curves 2022-01-02 11:21:45 +01:00
Jan 0e076bf47c Dump floating point numbers in info string with as little decimal places as possible 2022-01-02 10:32:52 +01:00
Jan bcafddd83a Dump and load iw4 physpresets 2022-01-02 10:25:48 +01:00
Jan 87c2e58c4b Add implementation for stringtable assetloader iw4 2022-01-02 01:34:42 +01:00
Jan 8e2b9f4a62 Update iw4 asset loader clipmap to use interface without asset_type_t specification 2022-01-02 01:10:57 +01:00
Jan 57f37ec0ea Add IW4 asset loader classes for all asset types that did not have one yet 2022-01-02 01:07:09 +01:00
Jan 98d62039eb If menu optimization is enabled, optimize away unnecessary if statements 2022-01-01 23:12:27 +01:00
Jan 8a3bbf948b Make sure you can specify event handlers more than once to be able to append script data 2022-01-01 20:00:09 +01:00
Jan d900b9cccd Fix not correctly setting type data for text scroll items 2022-01-01 19:40:08 +01:00
Jan 21f68c117e Fix float expression forecolors not setting dynamic forecolor flag 2022-01-01 18:44:04 +01:00
Jan 2df12e101e Disable static value evaluation for visible expression when optimizations are turned off 2022-01-01 16:59:27 +01:00
Jan 64a1e4c176 Fix menu visibility 2022-01-01 16:39:39 +01:00
Jan 4b80ed1e9e Do not parse menus more than once when they have already been parsed 2022-01-01 16:39:28 +01:00
Jan 5d1df29542 Make sure to only dump menu files once 2021-12-31 16:34:42 +01:00
Jan 28011d6b64 Add enums for GfxStateBits for future reference 2021-12-31 11:58:56 +01:00
Jan 657d32e5f6 Properly update menulist asset dependencies 2021-12-31 00:30:58 +01:00
Jan b5475e30f0 Only load menu files once 2021-12-31 00:09:25 +01:00
Jan 1e3946974c Fix menu converter not properly referencing functions 2021-12-30 19:22:17 +01:00
Jan 9136a7de3b Enable of usage of functions that were defined in the same menu file 2021-12-30 19:20:01 +01:00
Jan 3bbe5a4835 Remove outdated assertion for empty scriptstring list on loading 2021-12-30 19:19:42 +01:00
Jan 538c4be839 Fix not supporting nullptr scriptstrings 2021-12-30 16:51:16 +01:00
Jan 7283cc5640 Always set parenthesis for operations inside operations because the game is unable to calculate operations behind each other without parenthesis and does also not know what precedence is 2021-12-29 18:50:34 +01:00
Jan 8e4b2bb057 Add non default forecolor flag if forecolor is not white 2021-12-29 18:08:38 +01:00
Jan f628d33a95 Properly dump and convert visible property for items 2021-12-29 17:04:18 +01:00
Jan 83492b907f Properly dump and render rect property for items 2021-12-29 17:04:03 +01:00
Jan a7aac965da Convert menu item type data 2021-12-29 14:46:53 +01:00
Jan f30bbd65da Initialize default values of menus via class level defaults 2021-12-29 13:50:45 +01:00
Jan bf7e136c54 Convert enable dvar values 2021-12-29 11:50:39 +01:00
Jan 02f8924ada Fix floating expression converting not respecting static values 2021-12-29 11:50:29 +01:00
Jan 95b2e4b851 fix linker not having "no optimization" command line argument available 2021-12-29 11:49:11 +01:00
Jan 0ede5b30d4 Convert float expressions 2021-12-29 10:16:28 +01:00
Jan 96ad97b784 Apply menu elements defaults 2021-12-29 09:02:40 +01:00
Jan d8b1f58b40 Accept any character on menu permissive mode 2021-12-29 02:52:13 +01:00
Jan c87e87eafc Correctly write menu items to zone 2021-12-29 02:51:58 +01:00
Jan a0ff11a857 Create default GfxImage assets 2021-12-29 02:51:33 +01:00
Jan dcff6132b9 Fix menulist dumping functions not skipping nullptrs indices 2021-12-29 02:05:44 +01:00
Jan ae095f8fe5 Add focussound conversion for menus 2021-12-29 02:05:21 +01:00
Jan 3589035ed6 Use expression supporting data strings for menus 2021-12-29 01:25:18 +01:00
Jan 847e4d568c Add static dvars to menu conversion 2021-12-29 01:14:31 +01:00
Jan 5e31be9bac Finalize menu assets after loading all assets 2021-12-29 00:20:54 +01:00
Jan 7188b0946d Make use of custom functions when converting menus 2021-12-28 23:52:42 +01:00
Jan 338de302d9 Add free function to memory manager 2021-12-28 23:51:23 +01:00
Jan ca9ee04738 Dump menu functions with a function like call 2021-12-28 19:49:20 +01:00
Jan 43610b381d Reduce menu reading console output on successful read 2021-12-28 19:40:39 +01:00
Jan d24e847204 Add command line argument for disable menu optimizations on loading 2021-12-28 18:26:41 +01:00
Jan 6d622e6ae1 Create Default materials for iw4 2021-12-28 18:04:51 +01:00
Jan f0edfc5939 Fix IW4x menu script arguments 2021-12-28 18:04:32 +01:00
Jan 30bc876ee4 Add menu iw4x uiscripts 2021-12-28 15:31:56 +01:00
Jan bfe488acad Add missing expressions for openSound and closeSound for menus 2021-12-28 14:17:16 +01:00
Jan 80a0fba606 Parse menu event handler setplayerdata 2021-12-28 14:17:02 +01:00
Jan 15f57fedcd Make menu dumper consider empty tokens require parenthesis 2021-12-28 14:16:22 +01:00
Jan d2262ebaec Fix menu dvarStrList not working because of String chaining 2021-12-28 11:49:42 +01:00
Jan f8c79d27d0 Discord menu function that have already been defined when parsing 2021-12-27 14:16:17 +01:00
Jan 245a2ed642 Add equals operation to simpleexpressionvalue to check if an expression is the same as another one 2021-12-27 14:15:44 +01:00
Jan cc88fb0a5a Log menu parsing errors in stderr 2021-12-27 11:32:47 +01:00
Jan d4154d0cc2 Parse menu function values 2021-12-27 11:28:11 +01:00
Jan 7ea53808b7 Extend menu IT with materials 2021-12-27 11:27:59 +01:00
Jan 9c5c34b0c8 Leave away unnecessary trailing zeros in script numeric values for menus 2021-12-12 16:23:58 +01:00
Jan 4ed8016110 Add eventhandlersets to menu parsing integration tests 2021-12-12 14:03:23 +01:00
Jan a0200a9dbb Test certain properties with menu parsing integration test 2021-12-11 22:55:40 +01:00