Commit Graph

291 Commits

Author SHA1 Message Date
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
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
Anuken
5fce09c66e Fixed #10697 2025-04-20 15:43:38 -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
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
Anuken
b7dbe54d76 Merging changes from private branch 2025-04-04 11:47:35 -04:00
Anuken
7a6222aa18 Revert "Allow markers to be used as light sources (#9733)" (#10490)
This reverts commit 8626082068.
2025-02-10 14:24:46 -05:00
Redstonneur1256
8626082068 Allow markers to be used as light sources (#9733)
* Allow markers to be used as light sources

* Better light source markers

* Move PointMarker drawLight to LightMarker

* Add a rule for unit lights

* Optimize marker rendering

* Update core/assets/bundles/bundle.properties

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2025-02-09 12:10:45 -05:00
Anuken
44cd05f8b6 Privileged read/write fix 2025-02-09 00:40:29 -05:00
Anuken
b0f27c94bc Merge branch 'master' into pr-readwrite 2025-02-09 00:38:18 -05:00
router
9801dbdfd2 Add canGameOver to logic rules, fix trailing spaces (#10403) 2025-02-05 18:49:07 -05:00
1ue999
c4e25e312f Printchar (#10451)
* Added PrintChar operation

* Added 1ue999 to contributors

* Added PrintChar description, and improved the design of it.

* Ok intellij, removing the int cast

* Added capability to print content icons (@flare or @router)
https://github.com/Anuken/Mindustry/pull/10451#discussion_r1941282280

* Formatting changes (hopefully all of them)

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

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

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2025-02-04 19:39:33 -05:00
SomeonesShade
a2f196a50e Unit Mine Speed Game Rule Implementation and World Processor Set Rule for Unit Mine Speed (#10318)
* unitMineSpeedMultiplier Creation
added unitMineSpeedMultiplier
added unitMineSpeed(Team team)

* World Proccesor: SetRuleI unitMineSpeed Implemented

* World Processor: SetRuleI unitCrashDamage Implemented

* Revert "World Processor: SetRuleI unitCrashDamage Implemented"

This reverts commit 1b7187b046.

* Forgor to add, unitMineSpeedMultiplier is now editable per team
2025-02-04 13:52:25 -05:00
Anuken
a24dfedb68 Tileable displays nobody asked for 2025-01-08 17:10:05 -05:00
Anuken
a91729aa27 Scaled logic explosions 2024-12-15 23:09:14 -05:00
Cardillan
18955d6604 Properly rounding numbers for display - fix for negative numbers (#10355) 2024-11-30 10:09:15 -05:00
Cardillan
a3110fde21 Properly rounding numbers for display (#10354) 2024-11-29 11:59:17 -05:00
Anuken
9f877c9f20 Fixed setblock not being synced 2024-08-31 08:44:23 -04:00
Anuken
493b9807ff Removed @solid remnants 2024-08-25 17:01:06 -04:00
Anuken
f5a75de872 Fetch player block fix 2024-08-23 04:09:06 -04:00
Anuken
55dfffa4bc Hide internal units from logic 2024-08-23 04:00:18 -04:00
Anuken
074684e935 Closes Anuken/Mindustry-Suggestions/issues/5184 2024-08-22 03:21:24 -04:00
Anuken
e4b1bde974 Fixed #10132 2024-08-21 03:21:31 -04:00
Mythril382
bace523de4 Allow PlaySound To Work Normally With High IPT World Processor (#10083)
* allow global sound to play more than once per frame

might need an arc pr for the positional

* carhash

* thing

* extra field

* change "check frame" to "limit"

* description

* Update core/assets/bundles/bundle.properties

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-08-06 11:14:29 -04:00
Anuken
27f20b7a36 Better implementation of #10047 2024-08-03 00:51:31 -04:00
Anuken
345d710b4b Merge branch 'do-you-hear-the-voices-too' of https://github.com/Mythril382/Mindustry into logic-sound-2 2024-08-03 00:02:50 -04:00
WayZer
d55a5dd88d Merge branch Anuken:master into pr-readwrite 2024-07-31 11:20:20 +08:00
Anuken
295573142f Removing Nulls.unit 2024-07-10 16:40:32 -04:00
Anuken
0021f98335 Merge branch 'master' into do-you-hear-the-voices-too 2024-07-07 11:31:09 -04:00
TripleToxic
82bcf5966e Sensors, SetProp, and SetRule (#9943)
* some fun things for world proc only

* fix the format artifact

* SetProp and reformating

* Wildcard imports

* Wildcard imports

* velocity conversion

* compacting description

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

* Update core/src/mindustry/world/blocks/defense/turrets/Turret.java

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-07-07 11:28:19 -04:00
Mythril382
94ebec4b6d should 2024-06-21 01:50:48 +08:00
Mythril382
07d20a8da5 refactor 1 2024-06-17 02:21:55 +08:00
Mythril382
f4882d6615 Merge branch 'master' into do-you-hear-the-voices-too 2024-06-17 02:06:46 +08:00
Redstonneur1256
58dbc5104f Logic data instruction (#9935)
* Logic `data` instruction

* Rename to `clientdata` & reliable option

* frog

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

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-06-16 09:29:35 -04:00
Anuken
56b0deb910 Removed @solid variable 2024-06-16 01:35:48 -04:00
Anuken
7f9eb87313 Logic icon support for all blocks 2024-06-16 01:11:54 -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
Mythril382
41e2183793 Merge branch 'master' into do-you-hear-the-voices-too 2024-05-28 00:40:31 +08:00
Mythril382
0067af0e2c changes 2024-05-28 00:31:00 +08:00
Mythril382
dbb62bd87c nullcheck 2024-05-27 23:10:07 +08:00