Commit Graph

561 Commits

Author SHA1 Message Date
Anuken
e62c414efb Fixed @unit not saving in logic blocks 2025-08-27 18:15:41 -04:00
Anuken
42fb6b7a72 New environmental metal wall blocks 2025-08-23 17:04:57 -04:00
Anuken
e37852f312 Logic read/write cleanup and validity fixes 2025-08-05 10:49:42 +02:00
Anuken
db7aba8ea0 NaN checks for volume (from arc) 2025-08-01 19:50:29 +02:00
Anuken
4a43e963ca Fixed #11085 2025-08-01 19:32:28 +02:00
Anuken
a2dc0cf9f7 Select statement mobile layout fix 2025-08-01 05:14:06 -04:00
Cardillan
13f39b6b57 Make LExecutor.maxInstructions non-final (#11056) 2025-07-25 10:41:46 -04:00
Anuken
b0fe88b119 Closes Anuken/Mindustry-Suggestions/issues/5737 2025-07-21 03:09:41 -04:00
Cardillan
549fa1a065 Setting null to counter should be a no-op (#11012) 2025-07-17 18:45:47 -04:00
Anuken
1283355f30 Renamed bufferUsage -> bufferSize / Removed link name 'memory' 2025-07-10 13:34:46 -04:00
1ue999
26b349e5dd ReadI/WriteI interface for modding (and removal of if/else tree) (#11000)
* progress

* progress

* moar progress

* commits every 5 seconds poggers (done with LogicBuild)

* implement interface

* oop forgor to remove part of the old ReadI

* unnecessary import removed

* who needs a space? i got a spare one

* implement great suggestion by [object Object]

* more of this

* slipped past me

* more consistency
2025-07-09 23:20:35 -04:00
Anuken
b5eba35ed9 Merge branch 'master' of https://github.com/Anuken/Mindustry into wave-pathfind-avoidance 2025-07-06 13:13:55 -04:00
Anuken
b006a2a4f5 Better conditional avoidance system 2025-07-06 01:20:57 -04:00
Anuken
3d3507dec9 Closes Anuken/Mindustry-Suggestions/issues/5703 2025-07-05 18:06:46 -04:00
1ue999
0852a61caa Read from MessageBlocks/Builds (#10981)
* Added ability to read content of messages and sensing the length of the content.

Also some bundle changes for read/write

* this commit will make mindustry unable to compile trust

* oop missed a space
2025-07-03 13:25:22 -04:00
Redstonneur1256
835c8b4a6c Text align (#10804)
* Text/ShapeText marker text alignment

* Allow `draw print` to use a dynamic align

* Highlight currently selected value when possible

* Fix alignment with newlines

* Add `lineAlign`

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2025-07-02 14:04:43 -04:00
Redstonneur1256
b3050c299d Add select operation (#10798) 2025-07-02 14:02:51 -04:00
DarkJune
a5beafc769 Removed 2 redundant checks in LExecutor.ControlI (#10980) 2025-07-01 19:40:43 -04:00
Cardillan
289889a685 Small canvas read/write fixes (#10955) 2025-06-21 21:20:43 -04:00
The4codeblocks
0185b08ca7 canvas read/write + multiplayer overwrite bug fix (#10899)
* stuff

* Update CanvasBlock.java

* canvas read/write

* updated flag

* dispose on every possible closing condition (back/cancel/ok)

* arraycopy

* hide listener

* partial colons

* fix updated and dedupe closing

* typo?
2025-06-17 12:36:42 -04:00
Redstonneur1256
c27eac9bed Marker outline control (#10931)
* Marker `outline` control

* Text/ShapeText marker outline
2025-06-15 15:28:20 -04:00
Cardillan
981e954c61 Sense number of graphics operations (#10898)
* Sense number of graphics operations

* int to long
2025-06-14 11:21:18 -04:00
Redstonneur1256
ea333a0a63 True modulo and unsigned right shift. (#10885) 2025-06-02 14:05:45 -04:00
Anuken
64305aa8b1 Merge remote-tracking branch 'origin/master' 2025-05-25 12:32:54 -04:00
Anuken
c15d8d15cb Fixed #10846 2025-05-25 12:32:47 -04:00
50275
e0940ee31a Add log base n (#10843)
* Update LogicOp.java

* correct indentation
2025-05-24 23:21:47 -04:00
1ue999
f99153e2ef opround thing (#10805) 2025-05-14 13:03:12 -04:00
Anuken
c5f3d584f0 Fixed #10801 2025-05-14 10:29:05 -04:00
Anuken
2b4c87fb22 Merge remote-tracking branch 'origin/master' 2025-05-11 21:25:53 -04:00
Anuken
9730bbd58d Sign logic op 2025-05-11 21:25:45 -04:00
Redstonneur1256
159813a7fd Logic color unpacking (#10794)
* `unpackcolor`

* Add description
2025-05-11 10:43:37 -04:00
Cardillan
34151f13d6 Prevent setting counter to null using write instruction (#10774)
* Prevent setting counter to null using write instruction

* Reset isobj flag on counter on every instruction
2025-05-07 23:26:30 -04:00
Cardillan
80047eb4db QoL: provide easy way to restart processor (#10743) 2025-04-30 12:46:18 -04:00
Cardillan
0fca48b627 Allow Integer.MIN_VALUE to be parsed as an unsigned bin or hex literal (#10720)
* Allow Integer.MIN_VALUE to be parsed in two's complement form

* Removed misleading FIXME comments: Long.MIN_VALUE cannot be parsed at all

* Avoid casting invalidNum representation to double
2025-04-28 12:21:46 -04:00
Anuken
5fce09c66e Fixed #10697 2025-04-20 15:43:38 -04:00
The4codeblocks
757188b270 named colors in %<color> (#10682)
* named colors in %<color>

* bad copying + needs closing bracket

* fix formatt

* some other (now fixed) bug gave me trouble, now I can remove this

* shouldn't need access to Pal now
2025-04-19 11:03:22 -04:00
Cardillan
c3e2bcf2e7 Adds LAccess.bufferUsage, fixes wrong property names for displayWidth and displayHeight (#10679)
* Adds LAccess.bufferUsage - sensable property returning number of unprocessed commands in the graphics buffer of a display.
Fixes wrong property keys (lacess.* -> laccess.*) of the recently added displayWidth and displayHeight properties.

* Revert unnecessary bundle updates
2025-04-18 10:05:56 -04:00
Anuken
264d13f827 Closes Anuken/Mindustry-Suggestions/issues/5537, partially implements Anuken/Mindustry-Suggestions/issues/5535 2025-04-17 16:28:56 -04:00
Anuken
1a00264902 Merge branch 'master' of https://github.com/Anuken/Mindustry into tileable-logic-displays
# Conflicts:
#	core/assets/icons/icons.properties
#	core/assets/logicids.dat
2025-04-14 22:50:47 -04:00
Anuken
62585a32b3 Fixed #10647 2025-04-13 22:26:00 -04:00
1ue999
ba21959c15 Read Length of Strings (#10611)
* added ability to sense length of charsequences

* documentation

* Update core/assets/bundles/bundle.properties

Co-authored-by: Jason <131086642+JasonP01@users.noreply.github.com>

---------

Co-authored-by: Anuken <arnukren@gmail.com>
Co-authored-by: Jason <131086642+JasonP01@users.noreply.github.com>
2025-04-08 11:48:11 -04:00
Anuken
cb49d13d75 Made built-in variables viewable in editor 2025-04-06 15:15:40 -04:00
Anuken
c9b5b60c6d Frontier re-added with T2 tutorial; overgrowth moved 2025-04-06 15:07:56 -04:00
1ue999
11b60ed39f Read from string return null out of bounds (#10596)
* reading charcodes from strings as inverse of printchar

* made it actually work and tested it

* make reading invalid index of string return null instead of 0
2025-04-05 10:50:41 -04:00
ApsZoldat
212be01571 Minor editor/world processor fixes and tweaks (#10505)
* Rules search and info button tweaks

* Tweak spawnunit and some searching (again)

* Just revert a condition removal
2025-04-04 13:49:35 -04:00
1ue999
923a668631 read from string (#10531)
* reading charcodes from strings as inverse of printchar

* made it actually work and tested it
2025-04-04 13:47:29 -04:00
Cardillan
6a21b12b11 Adds LAccess.memoryCapacity - sensable property returning the size of a memory block (#10589) 2025-04-04 13:26:41 -04:00
Anuken
c2de9170dd Closes #10562 2025-04-04 13:18:15 -04:00
camelStyleUser
bd0436bbff Fix Integer.MIN_VALUE not getting parsed correctly and add [-+]0[xb] (#10586)
* Fix Integer.MIN_VALUE not getting parsed correctly and add [-+]0[xb]

* Handle number parsing edgecases

* Revert "Handle number parsing edgecases"

This reverts commit 6b7b01e636.

* Fix formatting
2025-04-04 13:12:03 -04:00
Anuken
0d5d0fdc9b Fixed #10558 2025-04-04 12:54:13 -04:00