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
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

Hey dudes how i can change "core sounds" like walking and hitting etc? I know how to add custom sounds with trigger but i dont know how to do this. Thanks!
minmay
Posts: 2789
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

overwrite them by defining a sound with the same name
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
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Ask a simple question, get a simple answer

Post by Eleven Warrior »

RE: Changing GameMode color.

Hi can anyone tell me how I can get the FadeOut and FadeIn color to change to White please.

GameMode.fadeIn(color, length)
GameMode.fadeOut(color, length)

I have tried and all I get is Black or Blue lol. Thxs for any help :)
User avatar
Isaac
Posts: 3188
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Eleven Warrior wrote:...
I have tried and all I get is Black or Blue lol. Thxs for any help :)
GameMode.fadeOut(0x3AFFC0, 2)

*If you have a decent paint program, the color picker will likely give the hex code for any color. That's a quick visual way to get the color code for the desired hue and value that you wish to use.

Barring that, there are these:
http://i212.photobucket.com/albums/cc13 ... colors.png
http://i271.photobucket.com/albums/jj12 ... 9tn8iv.gif
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Ask a simple question, get a simple answer

Post by Eleven Warrior »

Thank you so much Issac awesome bro :)

EDIT: But the charts(s) don't have the same values you have given me eg: (0x3AFFC0, 2). White colour = EEEEEE or FFFFFF. How did you get your (0x3AFFC0, 2)
User avatar
Isaac
Posts: 3188
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

This time I used Paint.Net, but I'm sure Gimp would offer the same, and Photoshop or Paintshop Pro.
minmay
Posts: 2789
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

if your program calls RGB 58, 255, 192 "white" then you should be using a different program

0xffffff is what you want; it's a hex number, first 8 bits (so two characters) from the left are red, second 8 bits are green, last 8 bits are blue
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
Isaac
Posts: 3188
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Eleven Warrior wrote:Thank you so much Issac awesome bro :)

EDIT: But the charts(s) don't have the same values you have given me eg: (0x3AFFC0, 2). White colour = EEEEEE or FFFFFF. How did you get your (0x3AFFC0, 2)
0x3AFFC0 isn't white; it's a light blue green... It's the color I picked to test with. It was just meant as an example of correct usage.
The charts or a color picker give the color codes.

(Re-reading your post, I can see how that would be mistaken as giving the code for White.) :oops:
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Ask a simple question, get a simple answer

Post by The cube »

alois wrote:If you look in the asset pack, in the scripts/monsters directory, you will find the "skeleton_commander.lua" file. At the beginning of the file there is the list of animations, one of which is "summonUndead".
Uhm.. where is the asset pack? I tried googling but found nothing, also there was no such thing at the steamapps -> LOG2 or at the same place custom dungeons are.
User avatar
THOM
Posts: 1280
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ask a simple question, get a simple answer

Post by THOM »

The cube wrote: Uhm.. where is the asset pack? I tried googling but found nothing, also there was no such thing at the steamapps -> LOG2 or at the same place custom dungeons are.
Look on this side above under "modding". You will find this link:
http://www.grimrock.net/modding/grimrock-2-asset-pack/
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
Post Reply