editorIcon = ?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
scorp29
Posts: 52
Joined: Sat Oct 27, 2012 8:31 pm
Contact:

editorIcon = ?

Post by scorp29 »

A simple question about the attribute "editorIcon".

Is there a place where all the icons related to each index is listed ?
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: editorIcon = ?

Post by Soaponarope »

It shouldn't actually effect anything, just makes it so you can better identify your custom objects. To see a good icon to use, just to open the script in the asset pack(such as objects.lua) and run a search for the type of object closest to the one your creating. Example, alcove is 8.
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: editorIcon = ?

Post by Komag »

a nice little graphical reference list would be handy
Finished Dungeons - complete mods to play
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: editorIcon = ?

Post by JohnWordsworth »

Here you go. About 10 lines of Lua and a bit of work with Paint.NET. These are all generated procedurally.

Image

To calculate the editorIcon value for a given icon, just add up the number to the left and top of it. ie. the Teleporter icons start at 30+6=36. I don't know about the repetition and how the editor knows to rotate the icons. I presume you just use the first value and then it adds 0,1,2 or 3 to it depending on the facing?
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: editorIcon = ?

Post by Skuggasveinn »

Awesome john.

I never noticed before but door_wooden and door_iron don't have the same editor icon number, I always thought it was the same, but now I see that door_iron has a hint of more orange (or I'm having too much jólaglögg)

Also pressure plate and hidden pressure plate have different numbers but look the same (maybe hidden was supposed to look different but never got done ??)

anyway, great info for people making custom assets and need to give them some editor icons that make sense.

Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: editorIcon = ?

Post by Komag »

I thought hidden plates were dotted and regular plates solid?
Finished Dungeons - complete mods to play
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: editorIcon = ?

Post by Xanathar »

I regular plates are 0 .. 3, while hidden plates are 140 .. 143.

Disclaimer: I'm right after a very strong belgian beer :D , don't take anything I say as truth!
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: editorIcon = ?

Post by JohnWordsworth »

Oh, thinking about it my image should have started at 0. I'm so used to Lua arrays starting at 1 I forgot the graphic atlas indices start at zero. Will update tomorrow - but the only difference is that the standard pressure plate starts at zero!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
scorp29
Posts: 52
Joined: Sat Oct 27, 2012 8:31 pm
Contact:

Re: editorIcon = ?

Post by scorp29 »

Héhé, thank a lot JohnWordsworth, this listing will definitly become handy while building custom dungeon!
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: editorIcon = ?

Post by LordYig »

Definitely handy to have !
Thanks a lot John.
Post Reply