Commit graph

317 commits

Author SHA1 Message Date
124ef410c7
Attempt to bring console back and update block ID list 2021-04-13 02:05:16 +02:00
98e00de642
Fix all startup errors 2021-04-12 17:37:51 +02:00
2d41026a05
Turned the rest of the errors into TODOs 2021-04-11 02:36:00 +02:00
a6b69d94c9
Start compatibility with Techblox
Added some TODOs as well
2021-04-10 02:02:47 +02:00
NGnius (Graham)
37e3c6f718 Remove debug FMOD patches 2020-12-28 13:47:08 -05:00
NGnius (Graham)
0ef875b6b2 Document undocumented IMGUI element classes 2020-12-27 18:57:23 -05:00
d954060a5a Add ability to change properties of existing blocks
And not storing custom block data for now
2020-12-27 21:13:49 +01:00
fdc47832f4 Store custom block IDs in save files 2020-12-26 01:59:06 +01:00
NGnius (Graham)
95574a50f8 Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI 2020-12-21 16:57:32 -05:00
NGnius (Graham)
1c014e36ac Add IMGUI styling and initial OOP implementation 2020-12-21 16:31:57 -05:00
879901f4b9 Add new block IDs, a property, 2 tests and fixes 2020-12-20 00:05:02 +01:00
6a90739197 Attempt to use custom cube category 2020-12-19 21:43:49 +01:00
9c5c980c0b Merge pull request 'Add custom block support to the API and update to latest GC version' (#6) from customblocks into master 2020-12-17 21:21:18 +00:00
712ece86db Add custom block registration functionality and a test 2020-12-17 20:20:46 +01:00
a7f6a16231 Update to Gamecraft 2020.12.16.14.19 and custom block stuff
- Fixed the crash on second time start
- Tweaked more stuff about the block

Breaking changes coming from FMOD 2.0:
- Audio[int index] changed to Audio[PARAMETER_ID index]
- Audio.Parameters removed
2020-12-17 02:34:36 +01:00
4e16f251ee Don't use the intended method to create a CubeListData
It adds it with its ID as key but the ID hasn't been set at that point
It works until the second simulation start now
2020-12-13 20:21:46 +01:00
78f0ea0162 Use the intended method to create a CubeListData
The block can be selected but not placed
2020-12-12 23:08:56 +01:00
5dfb01ef0b Use the console block's material again - IT WORKS
It shows up in the inventory but crashes when selected
2020-12-12 16:59:52 +01:00
432d6bcf96 Use the same (physics) componentts and attempt to use custom material 2020-12-12 02:28:42 +01:00
NGnius (Graham)
be7d8ba33a Merge branch 'master' of https://git.exmods.org/modtainers/GamecraftModdingAPI 2020-12-11 12:16:15 -05:00
56a64daa18 Merge branch 'master' into customblocks
# Conflicts:
#	GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs
2020-12-11 17:16:05 +01:00
ab1ae51ece Update to Gamecraft 2020.11.30.16.02 2020-12-11 17:11:24 +01:00
NGnius (Graham)
404c47c7c0 Bump version to 1.8.0 2020-11-18 16:46:23 -05:00
fad3b5cbf4 Fix picking block groups... 2020-11-14 22:43:45 +01:00
1f911b1d32 Fix move/rotate during init, add blueprint properties 2020-11-14 18:29:48 +01:00
f30dcd251f Displaying blueprint before placing, enums, ToString()s
Added support for getting the player's current building mode (build, color, config, blueprint)
Added support for getting the current game's mode (building, playing, prefab etc.)
2020-11-14 02:52:16 +01:00
680721256c Add support for copying wires, some fixes and additions
Removing blocks from groups when they are removed from the game
Attempted to update graphics when changing blocks
Disallowing changing the block group after creation, now that we can copy blocks
2020-11-13 23:59:37 +01:00
64b42830a3 Blueprint fixes, bump version, add block copy support
Fixed getting the selected blueprint
Fixed block groups not being assigned to first block
2020-11-13 21:40:32 +01:00
d744aaab79 Add ability to create & move block groups & other stuff
Added a way to store block groups as blueprints
Blocks can be added/removed from block groups, although it doesn't work well atm
Added some patches to the test class in an attempt to debug an unrelated issue
Added a command to test placing a block group
Added a SelectedBlueprint property to the Player class
2020-11-13 17:02:28 +01:00
3dd61b5e4f Replace ToManagedArray() and fix getting blocks from group 2020-11-13 17:02:27 +01:00
1c4e2a0db2 Add support for setting and placing blueprints 2020-11-13 17:02:27 +01:00
4f8feaa24b Add new blocks and some blueprint/block group support 2020-11-13 17:02:27 +01:00
NGnius (Graham)
8eec1358e9 Fix harmony patch error due to fixed name 2020-11-13 17:02:27 +01:00
NGnius (Graham)
08138e3589 Fix build errors from beta hotfix 1 2020-11-13 17:02:27 +01:00
987fbe673a Fix initial issues and add error on patch fail
Fixed compilation and loading issues for 2020.10.27.17.13
2020-11-13 17:01:46 +01:00
4580ae3b66 Add ability to create & move block groups & other stuff
Added a way to store block groups as blueprints
Blocks can be added/removed from block groups, although it doesn't work well atm
Added some patches to the test class in an attempt to debug an unrelated issue
Added a command to test placing a block group
Added a SelectedBlueprint property to the Player class
2020-11-12 02:39:58 +01:00
f1376f5df6 Replace ToManagedArray() and fix getting blocks from group 2020-11-10 23:08:27 +01:00
2179ba6386 Add support for setting and placing blueprints 2020-11-10 19:28:36 +01:00
1a986056a1 Add new blocks and some blueprint/block group support 2020-11-10 16:37:20 +01:00
NGnius (Graham)
d891f12701 Fix harmony patch error due to fixed name 2020-11-09 16:33:12 -05:00
NGnius (Graham)
1cb663b4d1 Fix build errors from beta hotfix 1 2020-11-09 16:18:25 -05:00
0bd348bd47
Fix initial issues and add error on patch fail
Fixed compilation and loading issues for 2020.10.27.17.13
2020-10-29 00:37:47 +01:00
3929144171
Merge remote-tracking branch 'origin/master' into preview
# Conflicts:
#	GamecraftModdingAPI/Block.cs
#	GamecraftModdingAPI/GamecraftModdingAPI.csproj
2020-10-28 21:10:30 +01:00
NGnius (Graham)
c6a1ea35cc Add damped spring 2020-10-27 11:59:21 -04:00
b0b496f22f Fix ConcurrentModificationException and some attempts 2020-10-22 02:34:59 +02:00
4701b3577d Make BlockColor.Index a property and other fixes 2020-10-02 17:06:06 +02:00
abbb83da26 Chunk and cluster fixes and improvements & bump version
Added Cluster.GetSimBodies() and SimBody.GetBlocks()
Fixed some issues with IDs and bad handling of them
2020-10-02 16:40:06 +02:00
64aace3bde Remove ScalingEngine.Setup() and add object ID to dict 2020-10-02 14:52:37 +02:00
9e9f56881f Add hotfix blocks and Player.LocalPlayer 2020-10-02 14:52:37 +02:00
c9e71d84b4 Add support for getting the RGB of block colors
Only works if the constructors are used
2020-10-02 14:52:37 +02:00