wledit {{::version}} changelog · credits · help
wledit is a simple yet (almost) complete mod editor for webliero.
it runs fully in the browser and doesn't upload any file to server
(well, except when you want it to, like for soundpack).
to save your changes, export to zip: it will pack all files and you can use this zip on webliero with /loadmod, or re-open it later with wledit!
wid 34 is a special hardcoded object in liero, and hence in webliero:
it has a specific behavior that will remove the wObject when it collides with a sObject.
This can cause issues when merging mods, as any wObject imported in position w34 will inherit this particularity, so be careful.
In extended, a new property removeOnSObject (available in wledit) was added and allows an author to reuse this behavior on other wObjects. Also, we try to set this property on the w34 of all existing mods, so that when the object is copied or merged into another mod, it'll still preserve the hardcoded behavior.
objects we use on extended maps (platforms, laser gates, lava..) could not have been done without implementing some new properties allowing more complex behaviors
-new bool property "removeOnSObject" for wobject
-new bool property "immutable" for wobject/nobject
-new bool property "fixed" for wobject
-new bool property "detonable" for wobject (allow remote detonation)
-new int property "teamImmunity" for wobject/nobject (0/1/2)
-new bool property "platform" for wobject (allow rope hook for now)
-new int property "platformWidth" for wobject
-new int property "platformHeight" for wobject
-new bool property "platformVelocityAuto" for wobject
-new float property "platformVelocityX" for wobject
-new float property "platformVelocityY" for wobject
Obviously these properties won't have any effect when the mod is loaded in a normal, non-extended room.
you should use GIMP with custom liero palette,
and produce a 256 colors PNG liero palette indexed.
you must create a WAVE file in this format:
PCM mono 8bits unsigned 22050hz
you can use a tool like soundforge to resample and convert your sounds.
this will work only on extended, as webliero doesn't allow custom soundpacks
the zip export of wledit contains all assets including the soundpack sounds.snd, so the zip itself could be uploaded somewhere and be used as an external soundpack. That's still not practical as you must know in advance the URL of your soundpack to put in the field before exporting zip.
wledit has a handy feature that will upload the soundpack for you on wledit server, and automatically update the soundpack field. your mod is then ready to be zip-exported and loaded instantly with /loadmod to test it!
limited to 3 uploads per day for unregistered mods.
live edit while playing allows fine tuning of weapons and objects behavior in real situation. It's probably one of the best feature, but it has some limitations:
- sounds lost their names, so not suitable to build a complete mod zip.
- some config properties related to wledit are also lost.
- existing comments in json5 are removed
- adding or replacing sprites must be followed by a reload of the generated wlsprt via /loadmod, as to avoid crashing the game.
contact Ophi on discord or webliero, you'll receive a password that you can then use to upload and update your mod via the "config" section.
liero.nl has many Total Conversions that are available in one-click. you can open multiple mods and use the merging tool to combine them. It's recommended to open a Classic Liero 1.33 mod too and use it as base mode (without weapons) to have a neutral working setup.
Remember that webliero has a limit of ~250 weapons so merging more will work but you won't be able to test it.
TC often come with new sounds, so don't forget to upload the soundpack via the "config" section before you export the final zip for /loadmod
wlkit.js is a javascript library to manipulate mods programmatically with ease. wledit is built on top of wlkit.js, and provides a visual interface to the various operations you can do with wlkit.js
it means you can benefit from the same features in your js projects, and most importantly in headless room script.
wlkit.js is a single js file you can import anywhere.
wlkit.js is not weblierokit, which is a different editor for webliero (not browser based) made by wgetch
Sample PHP Upload Script:
<?php $data = file_get_contents('php://input'); $fname = time().'.zip'; file_put_contents('/uploads/'.$fname, $data); echo 'https://mylierohost.example/uploads/'.$fname; ?>