Commit Graph

132 Commits (921649b17b492865568fd99eff84d3f94ba66021)

Author SHA1 Message Date
Nicole Collings c1752efc1d SPEED (Mapgen Remake Complete) 2020-07-16 12:10:40 -07:00
Nicole Collings 868cfe6339 Inline NoiseSample get, re-implement structures (no partials yet) 2020-07-16 10:51:24 -07:00
Nicole Collings 3c560c8ca2 MapGen rewrite pt. 1 - has DensityBehavior code. 2020-07-15 23:25:39 -07:00
Nicole Collings 2380c7ea31 Add a mutex to Chunk, safeguard all existing reads/writes.
* Clean up more imports.
* Create FileManipulator class.
2020-07-06 14:00:46 -07:00
Nicole Collings b272721fed Reimplement Biomes 2020-06-21 18:01:35 -07:00
Nicole Collings 7cdd9bc270 Clean up BlockChunk 2020-06-21 12:52:13 -07:00
Nicole Collings 1874e848f8 Remove Venus files 2020-06-20 23:37:13 -07:00
Nicole Collings d38b81705f Added Vector functionality, remove venus parser, add new blocks.
- Add colored lights to default for testing
- Add vector divide function
- Remove Venus Parser
2020-06-20 23:36:13 -07:00
Nicole Collings 9dfa361833 Fix blocklight propogation issue non-issue 2020-06-16 15:53:37 -07:00
Nicole Collings e51de627a2 Not working geometry shader. 2020-06-05 16:47:43 -07:00
Nicole Collings 571453843e Add sunlight generation - wip implementation, does not pass MapBlocks.
* Added light_propagates block definition parameter.
* Improved BlockLight propagation and rendering.
* Change index order to improve caching.
2020-05-22 13:21:08 -07:00
Nicole Collings b50732ec5e Many improvements with lighting, gfx, and stability
- Add curvature shader effect to blocks (not entities yetTM)
- Make fromStr with an empty string return Air instead of Invalid
- Make the player start with an empty hand instead of with stone
- Update chunks on lighting changes!
- Fix dirty chunk rendering!
- Fix segfault when getting non-existent inventory list.
2020-05-13 20:43:31 -07:00
Nicole Collings 49b45d1b9e COLORED LIGHTING~ 2020-05-12 17:16:11 -07:00
Nicole Collings a9a13b73c6 Files 2020-05-10 17:55:01 -07:00
Nicole Collings 4d49aee57c Hot wheel implementation, scroll wheel keys, better error handling 2020-05-10 17:53:37 -07:00
Nicole Collings 83dc74004e Refactor LuaKeybindHandler, Error catching on keybinds and callbacks.
* Hotwheel implementation pt 1
2020-05-07 17:21:56 -07:00
Nicole Collings 6add7becb4 Begin Hotwheel, InventoryLists can specify the amt of slots they display 2020-04-22 17:48:34 -07:00
Nicole Collings 83287cebf1 Add multiple GuiInventoryList callbacks, fix crash on resize. 2020-04-17 17:48:24 -07:00
Nicole Collings 0359ada6b3 Fix race conditions in *Streams, fix deserializer SegFault. 2020-04-17 17:19:01 -07:00
Nicole Collings e0a3dce73e Fix client-side segfault with uninitialized values. 2020-04-16 23:16:16 -07:00
Nicole Collings b9b3db77fd Fix client-side segfault with uninitialized values. 2020-04-16 22:59:30 -07:00
Nicole Collings 62d26bfee4 Add zeus subgame license 2020-04-15 13:10:58 -07:00
Nicole Collings af78490c7e UI Elements with Live manipulation & garbage collection 🦀 2020-04-15 13:09:13 -07:00
Nicole Collings afa1b5621d LocalGuiElement 2020-04-13 16:33:15 -07:00
Nicole Collings d80fdccde4 Create a Metatable for UI elements. 2020-04-11 16:15:41 -07:00
Nicole Collings f0aee0d952 Fix the assertions in the AnimationState, optimize code. 2020-04-06 19:17:16 -07:00
Nicole Collings a59e1d2a82 Various shit. 2020-04-06 17:18:57 -07:00
Nicole Collings 4febca7ef8 Lua Defined structures - WIP, New UI Library, move Base from mods~
Refactor GUIBuilder and MenuSandbox
Added outlined textures
2020-03-25 18:27:05 -07:00
Nicole Collings 2baf847828 Create PacketView, a more efficient packet handler.
* Include higher level functions in the vector library.
* Optimize more includes.
* Add outlined textures to repo and switch the graphics.
2020-03-15 14:26:39 -07:00
Nicole Collings 0a41147846 Amazing new vector library, safeties on arbitrary fn calls.
* Vectors have a full set of mathematic operations now.
* Vectors are indexed using 1, 2, 3 instead of xyz.
* Now using a Capital V for shorthand constructor.
* More safety on vector operators.
2020-03-06 18:07:22 -08:00
Nicole Collings 7886dc8097 Clean up NoiseSample class & MapGen, allow heightmap and volume noise. 2020-03-05 15:31:32 -08:00
Nicole Collings af9c38abf3 * Add double-press space fly toggle
* Clean GuiComponent interactions
2020-03-04 19:20:44 -08:00
Nicole Collings 24991f4590 Add ability to parent entity rotations, WIP. 2020-03-03 21:45:22 -08:00
Nicole Collings 8bd2e404cd Server-side inventory functionality! **yay** 2020-03-01 14:33:47 -08:00
Nicole Collings 7c0e1cefd7 Client can no longer interact with unloaded inventory lists
* Rename InventoryList to ServerInventoryList
2020-02-28 18:44:01 -08:00
Nicole Collings 338cae6a1e add readme 2020-02-28 13:04:43 -08:00
Nicole Collings c1dc594d54 SSEs will get deleted when deleted on the server, ortho model shading.
* register_on supports place & break, not after_* yet
* fixed a potential segfault loading an invalid mod
* added @aurailus:item_collection, converted `drop` params to `yields`
2020-02-28 13:03:19 -08:00
Nicole Collings 3093d53ea2 Server-side inventories can be sent to the client for viewing. 2020-02-27 17:23:42 -08:00
Nicole Collings e4de8f2556 Remove colons and at signs from mod folders for windows compat 2020-02-25 15:12:53 -08:00
Nicole Collings cc7163d61b Add clamping support to the ortho shader
* Biome tint leaves, tweak fluff texture to be less dense
2020-02-21 00:07:13 -08:00
Nicole Collings 707ccb6a51 Refactor GUI Library 2020-02-20 16:31:37 -08:00
Nicole Collings 3c128c95d6 Add (dis)connect events, add ServerLuaPlayer, create ServerModHandler
* Remove drop callbacks from all blocks
* Create chest inventory background
2020-02-19 15:20:59 -08:00
Nicole Collings f27a40abeb Updated CMakeLists 2020-02-17 13:04:19 -08:00
Nicole Collings ee94e691ae BlockChunks now use Run Index Encoding, 80% reduction in mem usage. 2020-02-14 13:04:07 -08:00
Nicole Collings c209b2a372 Fix Low definition Blend Masking, Server deletes far MapBlocks.
* remove* commands in Dimension
* Remove grid from inventory - for testing
2020-02-13 11:36:18 -08:00
Nicole Collings dad2f216fa Implement blend masking, fix block_foliage model hack. 2020-02-12 16:16:10 -08:00
Nicole Collings aee43750f4 Fix a couple mapgen bugs from last commit 2020-02-11 23:19:37 -08:00
Nicole Collings 119b6dfa55 Improve model support, QUINTUPLE map generation speeds. 2020-02-11 19:48:35 -08:00
Nicole Collings 7ba58799e9 Uproot GuiVertex, GuiMesh, GuiEntity, use generic entities.
* Add update method to GUIComponent
* Cursory 'model' GUIType support.
* Fix zeus:default/entity/bee.venus
2020-02-11 16:54:20 -08:00
Nicole Collings 41719bc67d Converted all remaining Zeus mods to venus except base. 2020-02-11 14:33:48 -08:00
Nicole Collings 17380d83fa Change most of the Lua files into Venus files. 2020-02-09 22:58:10 -08:00
Nicole Collings 2338d5b96c Fix GUI model rendering
* Un-hardcode inventory lists
* Begin implementation of the hotwheel
2020-02-06 22:31:08 -08:00
Nicole Collings b7641e466c Fix orientation of textures on block models 2020-02-03 12:08:25 -08:00
Nicole Collings 3bbae8a371 TODOFix: clean up some todos 2020-02-02 13:13:10 -08:00
Nicole Collings 99d26ed71f TODOFix: Un-hardcode the flying keybind 2020-02-01 16:09:50 -08:00
Nicole Collings dbcfe5c822 Tweaked the MapGen class to begin adding half-generated chunks.WIP Trees
* Added turbulence to biome noises, and made their sampling 2D.
* Added bees and ravens to test animation library.
* Added TNT to test large scale world destruction (some work needs to be done).
2020-01-30 20:54:18 -08:00
Nicole Collings 8065520c71 Reimplement local server and add a temporary function to start it from the main menu 2020-01-14 16:46:34 -08:00
Nicole Collings 83f6c78056 Change world to 3d noise, Lua animation control. Rabbit entity w/ ai 2020-01-14 16:04:22 -08:00
Nicole Collings acd99ce0c6 Add XYZ axis rotation to entities, fix dropped item rotation 2020-01-12 23:22:23 -08:00
Nicole Collings 947aa6dda5 Lua libnoise parser, biomes have seperate generation parameters~
* Delete deprecated MapGen stuff
! Entire chunk's biome-gen is defined by bottom left corner.
2020-01-10 17:31:07 -08:00
Nicole Collings 7c54de84fa Clean up the Register* functions, make them all one header file
* Reorganize src/lua
* Add `environment` table to Biome Definitions
2020-01-10 14:58:46 -08:00
Nicole Collings c0894d46c6 Change naming scheme from interp_pos & set_pos to set_pos & snap_pos 2020-01-09 15:42:04 -08:00
Nicole Collings 5d59e013d2 Synchronized Server side entities! Many integer vectors changed to ivecs 2020-01-08 14:42:14 -08:00
Nicole Collings f82052b5fc Add Local handler for ServerEntities (unfinished) 2020-01-06 19:48:51 -08:00
Nicole Collings ce07aa24b9 Transfer dirty lua entities to client -- no client handling at this time 2020-01-06 00:02:32 -08:00
Nicole Collings 12bfa015fe Add exceptions to server api methods 2019-12-28 22:42:46 -08:00
Nicole Collings 87eaf4058b Lua Entities can be registered on server side, don't transfer yet. 2019-12-28 20:40:29 -08:00
Nicole Collings 4a497ea38d placeStack & splitStack are now secured against enemy invaders
* allow_take, allow_put, on_take, and on_put lua callbacks work.
2019-12-21 21:54:06 -08:00
Nicole Collings 3aa945046f Crafting mod and crafting recipes - Initial commit 2019-12-19 22:56:09 -08:00
Nicole Collings bce33e9bc5 Inventory can have blocks in it! GuiShader supports 3d models.
* Increased contrast in plant_twine.png & plant_fibre.png
2019-12-18 17:12:34 -08:00
Nicole Collings 6830c4adc4 Lua Inventory API
* Split inventory mod into zeus:inventory
* Redo inventory textures
* Add more textures and items to zeus:materials
* Convert zepha.is_server() to zepha.server & zepha.client bools
2019-12-17 17:26:48 -08:00
Nicole Collings 5cf3569629 Inventory stacking, splitting, and placing 2019-12-15 16:51:41 -08:00
Nicole Collings 8167bc4c85 Inventory manipulation 2019-12-15 15:32:35 -08:00
Nicole Collings 3273dcd31b Attempt to get click callbacks on GameGui, not working. 2019-12-13 02:27:52 -08:00
Nicole Collings 532a0c3255 Add safeties to subgame indexing & menu mod loading.
* TextureAtlas loadDirectory function can be recursive.
* Re-implement GameGui showMenu.
2019-12-13 00:54:17 -08:00
Nicole Collings 3824b06061 Lua button callbacks, menu start_game API 2019-12-12 16:42:46 -08:00
Nicole Collings 8f035fe51d Optimize GuiBuilder slightly. 2019-12-12 14:39:51 -08:00
Nicole Collings c63f1a0ffd Main menu sandbox & lua defined GUI 2019-12-12 02:13:43 -08:00
Nicole Collings aee457fd9b Main menu sandbox & lua defined GUI 2019-12-12 02:13:28 -08:00
Nicole Collings 3aaf649c42 Refactor bottom bar, dynamically search for subgames. 2019-12-11 21:38:20 -08:00
Nicole Collings ebff66f1a7 Replace getTextureRef with operator[],delete Def member access functions 2019-12-10 23:12:29 -08:00
Nicole Collings e100bbdf6e Move mods to subgames/zeus/mods 2019-12-10 14:58:10 -08:00