[SOLVED] Malformed URL Encoded/Malformed File error

I don’t know why of how this error appeared or what it caused it, but nothing that i tried worked.
I think both of the errors are the same, but one happens during build and after the game builds.

Affected targets:

  • HashLink
  • HTML5

Library verions:

  • Haxe: 4.1.5
  • Lime: 7.9.0
  • OpenFL: 9.1.0, or git

Hashlink build with verbose mode:

PS C:\Users\beanz\Documents\PlankEngine> lime test hl -debug -verbose

_/\\\\\\______________________________________________
_\////\\\______________________________________________
_____\/\\\_____/\\\_____________________________________
______\/\\\____\///_____/\\\\\__/\\\\\_______/\\\\\\\\___
_______\/\\\_____/\\\__/\\\///\\\\\///\\\___/\\\/////\\\__
________\/\\\____\/\\\_\/\\\_\//\\\__\/\\\__/\\\\\\\\\\\___
_________\/\\\____\/\\\_\/\\\__\/\\\__\/\\\_\//\\///////____
________/\\\\\\\\\_\/\\\_\/\\\__\/\\\__\/\\\__\//\\\\\\\\\\__
________\/////////__\///__\///___\///___\///____\//////////___

Lime Command-Line Tools (7.9.0)

Initializing project...
Using project file: C:\Users\beanz\Documents\PlankEngine/project.xml
Reading Lime config: C:\Users\beanz\.lime\config.xml

Running command: UPDATE
 - Detecting font name: assets/fonts/pixel.otf -> "Pixel Arial 11 Bold"
 - Detecting font name: assets/fonts/vcr.ttf -> "VCR OSD Mono"
 - Detecting font name: C:/Users/beanz/lime/flixel/4,10,0/assets/fonts/nokiafc22.ttf -> "Nokia Cellphone FC Small"
 - Detecting font name: C:/Users/beanz/lime/flixel/4,10,0/assets/fonts/monsterrat.ttf -> "Monsterrat"
 - Copying template file: C:/Users/beanz/lime/openfl/9,1,0/assets/templates/haxe/ApplicationMain.hx -> export/debug/hl/haxe/ApplicationMain.hx
 - Writing file: export/debug/hl/bin/manifest/songs.json
 - Writing file: export/debug/hl/bin/manifest/tutorial.json
 - Writing file: export/debug/hl/bin/manifest/week1.json
 - Writing file: export/debug/hl/bin/manifest/week2.json
 - Writing file: export/debug/hl/bin/manifest/week3.json
 - Writing file: export/debug/hl/bin/manifest/week4.json
 - Writing file: export/debug/hl/bin/manifest/week5.json
 - Writing file: export/debug/hl/bin/manifest/week6.json
 - Writing file: export/debug/hl/bin/manifest/default.json

Running command: BUILD
 - Copying library file: C:/Users/beanz/lime/lime/7,9,0/ndll/Windows/lime.hdll -> export/debug/hl/bin/lime.hdll
 - Running command: haxe export/debug/hl/haxe/debug.hxml
source/PlayState.hx:202: characters 3-39 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
C:/Users/beanz/lime/polymod/git/polymod/format/ParseRules.hx:289: characters 17-21 : Warning : haxe.Utf8 is deprecated. Use UnicodeString instead.
C:/Users/beanz/lime/polymod/git/polymod/format/ParseRules.hx:388: characters 17-21 : Warning : haxe.Utf8 is deprecated. Use UnicodeString instead.
 - Copying file: C:/Users/beanz/lime/lime/7,9,0/templates/bin/hl/windows/hl.exe -> export/debug/hl/bin/hl.exe
 - Copying file: export/debug/hl/obj/ApplicationMain.hl -> export/debug/hl/bin/hlboot.dat
 - Renaming file: export/debug/hl/bin/hl.exe -> export/debug/hl/bin/PlankEngine.exe
 - Running command: C:/Users/beanz/lime/lime/7,9,0/templates/bin/ReplaceVistaIcon.exe export/debug/hl/bin/PlankEngine.exe export/debug/hl/bin/icon.ico 1

Running command: INSTALL

Running command: RUN
 - Changing directory: export/debug/hl/bin/
 - Running command: PlankEngine.exe -verbose -livereload
[lime.utils.Preloader] Preloading asset library: songs
[lime.utils.Preloader] Loaded asset library: songs [1/10]
[lime.utils.Preloader] Preloading asset library: shared
Uncaught exception: Malformed URL encoded
Called from haxe.Unserializer.unserialize(C:\HaxeToolkit\haxe\std/haxe/Unserializer.hx:251)
Called from haxe.Unserializer.unserializeObject(C:\HaxeToolkit\haxe\std/haxe/Unserializer.hx:193)
Called from haxe.Unserializer.unserialize(C:\HaxeToolkit\haxe\std/haxe/Unserializer.hx:288)
Called from haxe.Unserializer.unserialize(C:\HaxeToolkit\haxe\std/haxe/Unserializer.hx:278)
Called from haxe.$Unserializer.run(C:\HaxeToolkit\haxe\std/haxe/Unserializer.hx:465)
Called from lime.utils.$AssetManifest.parse(lime/utils/AssetManifest.hx:100)
Called from lime.utils.$AssetManifest.fromBytes(lime/utils/AssetManifest.hx:36)
Called from lime.utils.$AssetManifest.~loadFromFile.0(lime/utils/AssetManifest.hx:68)
Called from openfl.utils._ByteArray.$ByteArray_Impl_.~loadFromFile.1(flixel/FlxBasic.hx:0)
Called from lime.app.Future.then(lime/app/Future.hx:262)
Called from lime.utils.$AssetManifest.loadFromFile(lime/utils/AssetManifest.hx:66)
Called from lime.utils.$Assets.loadLibrary(lime/utils/Assets.hx:458)
Called from lime.utils.Preloader.updateProgress(lime/utils/Preloader.hx:238)
Called from lime.utils.Preloader.load(lime/utils/Preloader.hx:181)
Called from $ApplicationMain.create(ApplicationMain.hx:128)
Called from $ApplicationMain.main(ApplicationMain.hx:25)

HTML5 build with verbose:

PS C:\Users\beanz\Documents\PlankEngine> lime test html5 -debug -verbose

_/\\\\\\______________________________________________
_\////\\\______________________________________________
_____\/\\\_____/\\\_____________________________________
______\/\\\____\///_____/\\\\\__/\\\\\_______/\\\\\\\\___
_______\/\\\_____/\\\__/\\\///\\\\\///\\\___/\\\/////\\\__
________\/\\\____\/\\\_\/\\\_\//\\\__\/\\\__/\\\\\\\\\\\___
_________\/\\\____\/\\\_\/\\\__\/\\\__\/\\\_\//\\///////____
________/\\\\\\\\\_\/\\\_\/\\\__\/\\\__\/\\\__\//\\\\\\\\\\__
________\/////////__\///__\///___\///___\///____\//////////___

Lime Command-Line Tools (7.9.0)

Initializing project...
Using project file: C:\Users\beanz\Documents\PlankEngine/project.xml
Reading Lime config: C:\Users\beans\.lime\config.xml

Running command: UPDATE
 - Detecting font name: export/debug/html5/obj/webfont/pixel.otf -> "Pixel Arial 11 Bold"
 - Detecting font name: export/debug/html5/obj/webfont/vcr.ttf -> "VCR OSD Mono"
 - Detecting font name: export/debug/html5/obj/webfont/nokiafc22.ttf -> "Nokia Cellphone FC Small"
 - Detecting font name: export/debug/html5/obj/webfont/monsterrat.ttf -> "Monsterrat"
 - Writing file: export/debug/html5/bin/manifest/songs.json
 - Writing file: export/debug/html5/bin/manifest/shared.json
 - Writing file: export/debug/html5/bin/manifest/tutorial.json
 - Writing file: export/debug/html5/bin/manifest/week1.json
 - Writing file: export/debug/html5/bin/manifest/week2.json
 - Writing file: export/debug/html5/bin/manifest/week3.json
 - Writing file: export/debug/html5/bin/manifest/week4.json
 - Writing file: export/debug/html5/bin/manifest/week5.json
 - Writing file: export/debug/html5/bin/manifest/week6.json
 - Writing file: export/debug/html5/bin/manifest/default.json
 - Copying template file: C:/Users/beanz/lime/openfl/9,1,0/assets/templates/haxe/ApplicationMain.hx -> export/debug/html5/haxe/ApplicationMain.hx
 - Copying template file: C:/Users/beanz/lime/openfl/9,1,0/assets/templates/html5/hxml/debug.hxml -> export/debug/html5/haxe/debug.hxml
 - Copying template file: C:/Users/beanz/lime/openfl/9,1,0/assets/templates/html5/hxml/final.hxml -> export/debug/html5/haxe/final.hxml
 - Copying template file: C:/Users/beanz/lime/openfl/9,1,0/assets/templates/html5/hxml/release.hxml -> export/debug/html5/haxe/release.hxml

Running command: BUILD
 - Running command: haxe export/debug/html5/haxe/debug.hxml
export/debug/html5/haxe/ManifestResources.hx:1: character 1 : Malformed file. Source files must be encoded with UTF-8.
export/debug/html5/haxe/ApplicationMain.hx:13: lines 13-295 : Defined in this class
export/debug/html5/haxe/ManifestResources.hx:1: character 1 : Malformed file. Source files must be encoded with UTF-8.
export/debug/html5/haxe/ApplicationMain.hx:13: lines 13-295 : Defined in this class
export/debug/html5/haxe/ManifestResources.hx:1: character 1 : Malformed file. Source files must be encoded with UTF-8.
export/debug/html5/haxe/ApplicationMain.hx:13: lines 13-295 : Defined in this class

Nevermind, i found the problem, i had a asset that had a file name that had a polish symbol (ex. ł) and that dosen’t count as a UTF-8 character.