Ask a simple question, get a simple answer

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Duncan1246
Posts: 404
Joined: Mon Jan 19, 2015 7:42 pm

Re: Ask a simple question, get a simple answer

Post by Duncan1246 » Sun Mar 29, 2015 6:55 pm


Can they see it the whole way up, as it travels?
Or...perhaps have the increments increase mid-way, and reduce again, closer to the top.
Yes I am thinking about, they can go to the initial position of the beacon, but at the time of the raise, they can't see the whole thing, so perhaps I coukd find a better way like you describe it.
minmay wrote:Timers can only activate once per frame. What you want to do is use an extremely short interval like 0.001, which will trigger every frame, then scale the world position change with Time.deltaTime().
Thanks for your precision, but what Time.deltaTime() do?
The Blue Monastery (LOG1)
download at:http://www.nexusmods.com/grimrock/mods/399/?

Finisterrae(LOG2)
download at:http://www.nexusmods.com/legendofgrimrock2/mods/61/?

minmay
Posts: 2671
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay » Sun Mar 29, 2015 7:17 pm

It returns the amount of time elapsed since the last update in seconds.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.

User avatar
Ciccipicci
Posts: 154
Joined: Mon Oct 08, 2012 12:55 am

Re: Ask a simple question, get a simple answer

Post by Ciccipicci » Sun Mar 29, 2015 7:34 pm

REQUEST: Can someone paste complete scripts for teleport particle effect with different colors? Thanks.
I've asked 3 pages ago but with no reply.

Thanks anyway! :D

User avatar
Duncan1246
Posts: 404
Joined: Mon Jan 19, 2015 7:42 pm

Re: Ask a simple question, get a simple answer

Post by Duncan1246 » Sun Mar 29, 2015 7:47 pm

minmay wrote:It returns the amount of time elapsed since the last update in seconds.
Thanks, I shall try to use it
The Blue Monastery (LOG1)
download at:http://www.nexusmods.com/grimrock/mods/399/?

Finisterrae(LOG2)
download at:http://www.nexusmods.com/legendofgrimrock2/mods/61/?

SoloFreed
Posts: 6
Joined: Mon Mar 30, 2015 9:54 pm

Re: Ask a simple question, get a simple answer

Post by SoloFreed » Wed Apr 01, 2015 12:29 am

How do you look at/edit the icons used in the game for races and traits? I wanted to mod in some new races and I wanted to add in unique icons for them in the scripting. I'm not talking about the portraits that you can add in the documents folder. I'm asking about the numerical icons referenced in the .lua files.

minmay
Posts: 2671
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay » Wed Apr 01, 2015 1:38 am

You can find the icon images in the asset pack. (The grimrock.net link is broken right now but someone has kindly provided a mirror)
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.

SoloFreed
Posts: 6
Joined: Mon Mar 30, 2015 9:54 pm

Re: Ask a simple question, get a simple answer

Post by SoloFreed » Wed Apr 01, 2015 2:26 am

I have the asset pack but I can't find the icons in scripts or textures. I doubt they'd be in models or animations so it's probably that I've overlooked them. Another question I have is how do I put scripts that I've changed into the game. I've tried making new classes and I don't know what to do with them.

minmay
Posts: 2671
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay » Wed Apr 01, 2015 2:32 am

SoloFeed wrote:I have the asset pack but I can't find the icons in scripts or textures.
assets/textures/gui/skills.dds
SoloFeed wrote:Another question I have is how do I put scripts that I've changed into the game. I've tried making new classes and I don't know what to do with them.
When a mod is loaded it will load the dungeon.lua and init.lua in the dungeonFolder path given in the .dungeon_editor file. Just import your other Lua files in the init.lua.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.

SoloFreed
Posts: 6
Joined: Mon Mar 30, 2015 9:54 pm

Re: Ask a simple question, get a simple answer

Post by SoloFreed » Wed Apr 01, 2015 4:18 am

So you can't create modded classes and use them in the default game?

User avatar
Isaac
Posts: 2972
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac » Wed Apr 01, 2015 4:22 am

All icons exist internally in a few DDS format images. You can edit these in any image editor that can load and save DDS format. Paint.Net is a free one that supports dds format natively. Gimp and Photoshop are more powerful, and there are free plugins to add DDS support.

The skill images are in one file: skills.dds

The numbers you mentioned correspond to the many 75x75 pixel slots in the image file. (Called an atlas)

You can make your own atlas and add it to the definition of a new skill like so:
(By way of example.)

Code: Select all

iconAtlas = "mod_assets/textures/custom_skills.dds"
icon=2
Image
For an atlas, you can either create the texture yourself, and insert your custom icons (side by side; each 75 pixels square), or you can use the Grimrock Atlas Toolkit.

Post Reply