SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Editing Help (https://mb.srb2.org/forumdisplay.php?f=64)
-   -   Help With Skin Colors. (https://mb.srb2.org/showthread.php?t=48553)

Nicolas618 07-31-2020 03:52 AM

Help With Skin Colors.
 
Hi! well the error is, that when i put my skincolor lua that i make yesterday, it says this :

https://i.imgur.com/3iMFVNn.png

(that = near char(1) Thing)

Also, if you want to see the code :

https://i.imgur.com/MdPxpWG.png

https://i.imgur.com/Y7cuD8g.png

Kaysakado 07-31-2020 06:09 AM

Not 100% sure this is all accurate, but this is what I think:

You have a file with the extension .lua, and you included a lua script as a lump *within* that file as if it were a WAD. When SRB2 adds a file with the extension .lua, it assumes it's reading a plaintext file (as if you saved it from a text editor, not SLADE), so it gets confused when it starts reading WAD header data that SLADE saved.

If you originally created this file as a "Wad Archive" in SLADE, try just changing the file extension to .wad and see if it works.

If you originally created this file as a "ZIP Archive" in SLADE, try making a folder called "Lua" in the archive, put your script in there, and then save it with the extension .pk3.

If you don't intend to package anything else with these skincolors, though, you really should just make a proper .lua file! Copy your script into a plain text editor (like notepad.exe), and save it with the extension .lua.

Nicolas618 08-02-2020 06:34 AM

It worked, thank you! I can throw it to Submissions now!!


All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.