View Issue Details

IDProjectCategoryView StatusLast Update
0002420Infinitode 2[All Projects] Infinitode 2public2024-05-19 17:30
ReporterZiHeLL Assigned Totherainycat  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
Product Version1.9.0 (Season 3) 
Target VersionFixed in Version 
Summary0002420: gdx.files in console
Description

It is impossible to use gdx.files['local'] (or gdx.files.local) in devmode console, meaning on mobile it is impossible to import any mods, from maps to resourcepacks. It is obviously a scary tool to have access to in map scripts, so there needs to be a difference in restrictions or an alternative method just for reading/writing .json files in local directory.

TagsMod, Must have

Activities

therainycat

therainycat

2024-05-19 17:30

administrator   ~0002464

It won't be ever possible to read/modify any file through Lua scripts, because it is a top 1 security flaw.
If you want to share a map, use "Copy Json" / "Share online" / "Add from Json" / "Add from URL" buttons in the map configuration menu.
More convenient ways of sharing maps and mods will be available as soon as it is safe for the players to run 3rd party scripts - you can help with that by reviewing the list of available methods in assets/res/luajava-map-generator-report.html and reporting the dangerous ones (those that can be used to abuse player's device or ruin his progress) right here on the tracker.

Issue History

Date Modified Username Field Change
2024-05-19 14:18 ZiHeLL New Issue
2024-05-19 14:18 ZiHeLL Tag Attached: Mod
2024-05-19 14:18 ZiHeLL Tag Attached: Must have
2024-05-19 17:30 therainycat Note Added: 0002464
2024-05-19 17:30 therainycat Assigned To => therainycat
2024-05-19 17:30 therainycat Status new => closed
2024-05-19 17:30 therainycat Resolution open => not fixable