Commit Graph

261 Commits

Author SHA1 Message Date
酪桦姬
e4283a3064 Update SaveVersion.java (#10192)
some mods can use tile.data for some extra use for terrain
2024-10-04 15:15:12 -04:00
Anuken
5b9d3029a5 Loop unit transfer command 2024-09-17 18:03:31 -04:00
Anuken
295573142f Removing Nulls.unit 2024-07-10 16:40:32 -04:00
Redstonneur1256
9f92a5ac06 Logic Refactor (#9940)
* Replace logic variable indexes

* Fix `draw print`'s align

* Update core/src/mindustry/logic/LExecutor.java

Co-authored-by: Anuken <arnukren@gmail.com>

* Remove duplicated variables

* Update core/src/mindustry/world/blocks/logic/LogicBlock.java

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-06-16 00:37:04 -04:00
Anuken
6243ef6d4a Fixed #9892 2024-05-27 09:40:52 -04:00
Anuken
1d894bdacd Objective marker cleanup & optimization 2024-01-14 12:41:20 -05:00
Anuken
a0f235b430 Make isSaveValid check backups 2023-12-10 15:48:35 -05:00
Anuken
e494806cc8 Better Flare/Avert targeting / Fixed targets resetting on save load 2023-12-10 08:32:49 -05:00
ApsZoldat
862d3153d9 Map-specific locale bundles system (#9199)
* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes

* Add privileged desynced client constant global variables

* Remove broken attempt to not initialize client vars on server

* Make @clientLocale variable non-constant, make @server and @client privileged

* WIP Implementation of map-specific locale bundles

* Progress on map locale bundles: add locale data to saves, make objectives use map locales if possible

* Add print formatting and map locale printing to world processors

* 🗿

* Minor map locales dialog ui changes

* Make map locale bundles load when joining multiplayer server

* Remove static declaration of current locale in MapLocales to fix tests failing

* Unify name of localeprint instruction, minor instruction description change, fix map locales incorrectly loading from clipboard

* Fix locale bundles not saving in game state, add  global var, make objective markers use map locale bundles and .mobile properties on mobile devices

* Even more map locales dialog improvements

* Fix english locale picking (when property isn't presented in current locale but english version has it) not working

* Add icon pasting to map locales dialog, minor ui changes

* Fix inconsistent game crash with null text in objectives, define player.locale on game loading (for clientLocale var)

* Change format instruction placeholders to backslash, fix map locales system incorrectly handling default locale

* understood
2023-12-01 21:14:10 -05:00
Anuken
9c10a09438 Simplification 2023-11-01 12:23:48 -04:00
Anuken
5fe4b9a36c alignment, comments 2023-10-31 12:38:55 -04:00
Anuken
e5047d752d Added dynamic status for custom speed/health/etc 2023-10-31 11:24:03 -04:00
Anuken
8bbf5b1f52 Marker instruction rework 2023-09-28 01:04:03 -04:00
ApsZoldat
8c777e79fa Add marker instruction to world processors (#9087)
* Basic implementation of world processor marker control

* Add line marker, some marker control fixes

* Add remote for setting markers, add marker writer/reader to TypeIO

* Add sides cap to ShapeTextMarker's draw() method

* Marker instruction code refactor, revert accident auto-formatting, fix marker control bugs

* Cleanup LMarkerControl.java

* Remove deleted marker controls from MapObjectives

* Marker control method refactor, fix minimap marker rendering

* Refactor, proper double comparsion in MapObjectives

* Fix line marker's color not changing through world processors
2023-09-27 17:17:59 -04:00
Anuken
276245bf3c Commands are now content 2023-09-23 17:10:19 -04:00
Anuken
06a5201ae8 Payload stances changed to commands 2023-09-22 18:32:35 -04:00
Anuken
f633fb0af5 Fixed setProp x/y not teleporting on strict servers 2023-09-22 10:06:43 -04:00
Anuken
3e15f70efa Added unit stances 2023-09-20 21:55:06 -04:00
Anuken
aecd220574 RTS Control groups 2023-09-19 23:48:40 -04:00
Anuken
2e0c5619b1 WIP command queueing 2023-09-19 17:25:49 -04:00
Anuken
f17719f08e Fixed #8777 2023-06-29 09:48:26 -04:00
Anuken
7e23272668 Do not crash when reading null planets 2023-06-17 20:39:52 -04:00
Anuken
70516752fc Fixed reconstructor commanding in multiplayer 2023-06-17 17:54:29 -04:00
Anuken
4b0824a20c Admin player team switch + more trace info 2023-06-11 23:18:04 -04:00
Anuken
b6f5d424da Select command from reconstructor / Units save command when controlled 2023-05-30 20:08:48 -04:00
Anuken
72b456fca2 Optimized imports 2023-04-06 10:46:52 -04:00
Anuken
25c65e80cd Fixed team write error 2023-04-02 10:36:26 -04:00
MEEPofFaith
f6a8c7509d Include int[] in readObject/writeObject (#8400)
* Include int[] in readObject/writeObject

* The almighty Object[]

* Order
2023-03-25 14:31:14 -04:00
Anuken
6d7c207b95 Fixed drawing of assembler payloads 2023-01-15 08:51:51 -05:00
Anuken
411367f294 Revert JSON rules change 2023-01-12 14:38:11 -05:00
Anuken
dcc6e9827d Status flash tweaks 2023-01-08 12:29:29 -05:00
Anuken
eb410af371 sandbox is now actually sandbox again 2023-01-07 14:41:12 -05:00
GlennFolker
93f630bb69 Make custom Env flag reliably possible (#8019)
* Make custom Env flag reliably possible

* screw you

* "compatibility" for mods that don't use add()
2023-01-07 13:48:28 -05:00
Anuken
dc2a68573b Fixed #7829 2022-11-05 15:03:57 -04:00
Anuken
abb92350c0 Fixed strange smooth movement of fast ground units 2022-09-10 15:02:55 -04:00
Anuken
55c54b34f9 Fixed #7477 2022-08-29 18:57:20 -04:00
Anuken
2a062b96ec Changed internal name of sand 2022-08-27 19:39:53 -04:00
Anuken
400a6a28c1 Fixed #7417 2022-08-22 14:39:08 -04:00
Anuken
55edd53f84 WIP command order system 2022-07-30 21:01:07 -04:00
Anuken
8383d151a3 fixed release script but it's too late 2022-07-16 11:04:44 -04:00
Anuken
8d6cac39d0 Fixed #7178 / Maps renamed 2022-07-15 19:26:23 -04:00
GlennFolker
695c19d0b0 Tree-like objective node structure (#7152)
* overall structure

* overall layout

* field interpreter

* less bloated UI

* scroll pan't

* strip off the 'Marker' suffix

* e

* all (hopefully all...) interpreters finished.

* onset

* two, four

* i don't understand how icon mappings work.

* separate remover and indexer

* some cleanups

* untested mobile support

* contrib

* ok anuke

* fix conflicts 2

* hidden
2022-07-15 10:41:18 -04:00
Anuken
a39fe2cb37 WIP map info dialog changes 2022-06-23 16:32:37 -04:00
Anuken
7885a46cd5 Renamed TeamData blocks -> plans 2022-05-07 10:57:21 -04:00
Anuken
55f729565b Modding API-related tweaks 2022-05-06 13:45:43 -04:00
Anuken
59be28b5eb Time to begin adding the new units 2022-04-30 18:08:40 -04:00
Anuken
8ab584c33b Save fixes 2022-04-27 13:37:26 -04:00
Anuken
2a8c4b51d4 Objectives 2022-04-13 15:09:49 -04:00
Anuken
a4ba1ed340 WIP map objective system 2022-04-11 23:59:38 -04:00
Anuken
047c284e48 New avert sprite / Fixed loading of CommandAI positions 2022-04-06 10:37:26 -04:00