51 Commits

Author SHA1 Message Date
Valentin Anger
c5ef06a4cd First version of the pitch and yaw calculation
Don't Store object into another table.
Continue with all players instead of returning after first hit.
2018-05-14 12:17:39 +02:00
Pascal Abresch
0cf9016c8c inital code for focus item 2018-05-12 22:58:56 +02:00
Valentin Anger
864add28bc Ignore invalid player hud entries 2018-05-12 17:56:31 +02:00
kamirama
7955540ae0 removed useless block 2018-01-07 13:54:33 +01:00
Valentin Anger
7b33564b3f Make solarpanels have a stand 2017-12-07 18:38:52 +01:00
Valentin Anger
1c342844e2 Remove unnessesary table print function, minetest has a nicer one 2017-12-07 18:35:10 +01:00
Valentin Anger
ace37afacf Distribute energy according to node types 2017-08-30 14:42:26 +02:00
kamirama
ad3c8fca41 modified blocks for new energy system 2017-08-20 17:07:58 +02:00
Valentin Anger
425749e178 Continue work on the network build code 2017-08-20 18:50:37 +02:00
kamirama
b8cac10466 merged master 2017-08-20 01:50:23 +02:00
Valentin Anger
005f5eb12b Move hud into sparkcore and use sparktech dictionary as storage 2017-08-20 02:21:52 +02:00
kamirama
90239eb6b4 started energy rewrite as networks 2017-08-20 01:45:36 +02:00
kamirama
b2cc2761ac removed useless file 2017-08-19 23:04:59 +02:00
Valentin Anger
834b3986c7 Merge branch 'api' 2017-08-20 00:11:42 +02:00
Valentin Anger
66cf5bbea8 Merge branch 'furnace' 2017-08-20 00:04:30 +02:00
Valentin Anger
0cb46c4302 Add a debug print function that supports table objects 2017-08-19 23:42:19 +02:00
kamirama
816eafe311 enabled digging of debug nodes with sparkwrench 2017-02-16 22:37:22 +01:00
kamirama
2e9fb862b2 removed inventory code from debugwrench 2017-02-16 22:36:54 +01:00
kamirama
98bd390629 Changed debug ouput and merged all init.lua scripts [relative symlink] 2017-02-16 00:59:22 +01:00
Valentin Anger
f2a191b316 Update the new spark_dig_stlye_alt setting name for remaining tools 2017-01-13 21:00:23 +01:00
Valentin Anger
7ce288d0a7 Merge branch 'master' of gitlab.com:SyrupThinker/minetest-mod-sparktech 2017-01-13 20:23:00 +01:00
Valentin Anger
965aeaa868 Improve energy balancing and add a new hud
- Now a function that actually creates the
  relative average is used
- A new hud has been added to show the energy level
  of items hold in the players hand
2017-01-13 20:22:16 +01:00
kamirama
7d277f3f54 added option to disable console loggin 2017-01-12 00:36:38 +01:00
Valentin Anger
56412556e8 Improve the sparktool_dig_stlye_alt option code
- Predefine on_use instead of having two tool definitions per tool
- Add the tablet to the tools with this feature
- Readd the increased range to debugwrench
2017-01-04 17:45:08 +01:00
Valentin Anger
6cc3f16647 Improvements for 2b612c7d67cd913bff2cec72ef20d301047b2ea9
- Fix Last not working due to a early return
- Return the proper value as explained in
  16b541a0e1af2296d35ad8c7f5ac71ae681f7a25
2017-01-04 16:51:32 +01:00
Valentin Anger
da244a69e9 Revert "Remove a false return in f_tablet that made Last unusable"
This reverts commit 16b541a0e1af2296d35ad8c7f5ac71ae681f7a25.
2017-01-04 16:45:31 +01:00
Valentin Anger
f031389282 Merge branch 'energy-rewrite' 2017-01-04 16:44:55 +01:00
Valentin Anger
895d503270 Finish rewrite of the new energy system - Closes #14
Changes:
- A connection between two nodes get updated once per cycle
- Nodes have a type specified in sparktech_energy_conductor as follows
1 for a transfer node like cables
2 for a producer like solarpanels
3 for a storage like capacitors
4 for a consumer like electric furnaces
- Nodes of type 2 balance between each other and push to all other nodes
- Nodes of type 1 and 3 balance between each other
- Nodes of type 4 pull from all other nodes that are not of type 4
- When balancing, the relative charge of a node is concidered
2017-01-04 16:30:52 +01:00
Valentin Anger
16b541a0e1 Remove a false return in f_tablet that made Last unusable
Returning false in a register_on_player_receive_fields callback
activates the next registered callback.
We don't need to return false if there is a expected form incoming.
2017-01-04 13:56:28 +01:00
kamirama
2b612c7d67 usability improvements for tablet 2017-01-04 00:59:10 +01:00
Valentin Anger
12f876dee5 Fix tablet not being usable when pointing at nothing 2017-01-03 18:10:09 +01:00
Valentin Anger
a2a2190947 Merge branch 'master' of gitlab.com:SyrupThinker/minetest-mod-sparktech 2017-01-03 18:04:11 +01:00
Valentin Anger
1ce3ed7801 Nodes in group sparktech_energy_storeonbreak keep energy after break 2017-01-03 17:48:45 +01:00
kamirama
65a656a760 changed tablet formspec 2017-01-03 16:41:03 +01:00
kamirama
7123645cba added optional alt dig style for sparktools 2017-01-03 16:29:18 +01:00
Valentin Anger
6b35f8ccf9 Like 1d402e3c66d10eb5444b568a8365c28a6fc30121 for sparkdebug:tablet 2017-01-03 15:10:47 +01:00
Valentin Anger
1d402e3c66 Make sparkdebug:multimeter a tool and use on_place
The multimeter should appear in the tool tab and the usage
of sparktech tools should be consistent
2017-01-03 14:54:39 +01:00
Valentin Anger
d0eb74d9e5 Check for nil in the code field of the tablet form - Closes #13
When fields.code in the f_tablet form is nil replace it with an empty
string to prevent a type error in set_metadata
2017-01-03 14:49:06 +01:00
Valentin Anger
2b10b2eb40 Rename instawrench to debugwrench
The name instawrench is redundant as the sparkcore:wrench removes nodes
at the same speed
2017-01-03 14:41:58 +01:00
Valentin Anger
a4f648ce02 Use on_place for node removal with wrenches
Instead of mining a sparktech_techy node with a wrench
the wrench is "placed" to remove the node
2017-01-03 14:37:35 +01:00
Valentin Anger
ad1ddbfcf4 Switch to on_use for the multimeter - Closes #10 2017-01-03 12:52:18 +01:00
kamirama
8dbdd41cd2 changed group of sparkdebug:d_block 2017-01-02 21:18:51 +01:00
Valentin Anger
001dbb33f9 Add sparktech_techy group and wrenches - Closes #8
sparktech_techy is for technological nodes
- current sparktech nodes are only minable
  with a tool implementing this group
2017-01-02 20:53:44 +01:00
Valentin Anger
0e4cf52a31 Isolated tablet and d_block from sparkdebug init - Closes #4 and #5
Reduced the amount of global data:
- The last command is stored in the tablet item metadata
Limited tablet an tablet and multimeter stack size to 1
2017-01-02 19:55:47 +01:00
kamirama
60ac347ba3 cleaned up debug messages of sparkdebug - Closes #2 2016-12-31 13:50:44 +01:00
Valentin Anger
9c4b90ec12 Move sparktech global variable to sparkdebug - Closes #1
It is not required by sparktech
2016-12-31 14:41:24 +01:00
Valentin Anger
4ca694f0fe Improve multimeter output 2016-12-30 21:16:49 +01:00
Valentin Anger
99eee19d41 Add an example for settingtypes 2016-12-30 17:46:55 +01:00
Valentin Anger
64c64aeb3d Fix the tablet not working
After moving the code the formspec name hasn't been updated
2016-12-30 17:04:51 +01:00
Valentin Anger
9dfe0da584 Isolate multimeter logic and move it to sparkdebug
Removes "dependency" sparkdebug for sparktech
2016-12-30 17:00:48 +01:00