Editor Tutorials on YouTube - part 15 is out

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!
Post Reply
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Editor Tutorials on YouTube - part 9 is out

Post by Skuggasveinn »

Part 9 is out - Day and Night Cycle. http://youtu.be/lRJCie3uWw0
OP has been updated with the code from this session.

In this tutorial we take a look at how the day and night cycle works.
We create some debugging output that tells us the numerical value of they cycle.
We use that value to create a light-bridge and some fireflies that are only on during the night.
We look into how we can push the cycle forward even if the party is standing still.
And we go into console commands to use if we wan't to jump to a point in time during the cycle to test what we are doing.

Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: Editor Tutorials on YouTube - part 9 is out

Post by Grimfan »

Brilliant stuff Skuggs! Your tutorials are golden. :)
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Editor Tutorials on YouTube - part 9 is out

Post by NutJob »

Wow you're on fire! I get another great video with my coffee this morning. ~cheers~

Edit: External Scripts! So easy! Why didn't I find that on Day One using this editor! Will use always, for everything! Finally syntax highlighting with my sublime_text!

Question: What encoding should be used? ANSI, utf-8, utf-8 (without BOM)? If using with a BOM will import be a problem?

Character set? Keep to ascii or can we have unicode for multiple languages?
User avatar
Vice Dellos
Posts: 47
Joined: Thu Feb 28, 2013 12:56 pm

Re: Editor Tutorials on YouTube - part 9 is out

Post by Vice Dellos »

tnx skugg these videos are awesome
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Editor Tutorials on YouTube - part 9 is out

Post by Drakkan »

Hi guys (Skugg), I am trying some object to be visible during specific time, that object has just .model component. How to say activate / deactivte during specific time ?

EDIT: ah got it, enable / disable workign as well for model :)
Breath from the unpromising waters.
Eye of the Atlantis
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Re: Editor Tutorials on YouTube - part 9 is out

Post by MrChoke »

Skuggasveinn,
Another great video, thanks! I have to ask again (didn't get a reply the 1st time), how are you finding these objects and methods???? "GameMode" and more amazingly "GameMode.getTimeOfDay" and "GameMode.setTimeOfDay". I cannot believe that you spend hours at the LUA prompt typing in names until you get non nil values to find these objects and methods. How are you doing it? Are you parsing grimrock2.dat with a Hex editor like the other guy did (great work by him too), or are you an "Almost Human" DEV in cognito?
Faerghail
Posts: 72
Joined: Tue Mar 27, 2012 8:49 pm

Re: Editor Tutorials on YouTube - part 9 is out

Post by Faerghail »

Thank you very much for your tutorials Skugg ;)
User avatar
Rougecorne
Posts: 34
Joined: Wed Oct 29, 2014 1:52 am

Re: Editor Tutorials on YouTube - part 9 is out

Post by Rougecorne »

A big thank you for your videos !

(Sorry for my bad english, i am belgian ^^)

I have a question for you : In LoG 2, how can i create a new weapon/armor with script ?
Because, i use this script:

Code: Select all

cloneObject{
	name = "super_machete",
	baseObject = "machete",
	uiName = "Super Machete",
	attackPower = 12,
	damageType = "shock",
	description = "This machete radiates with strange energy.",
}
and when i reload my project, i have this message:

mod_assets/script/items.lua:6: attempt to call global 'cloneObject' (a nil value).
I am noob with script, seriously ^^ So, what is the problem ? :(
User avatar
Mysterious
Posts: 226
Joined: Wed Nov 06, 2013 8:31 am

Re: Editor Tutorials on YouTube - part 9 is out

Post by Mysterious »

Hi. This a dumb question but how do I enter the Game Console like skuggs did?
User avatar
blob
Posts: 50
Joined: Fri Aug 02, 2013 9:34 am

Re: Editor Tutorials on YouTube - part 9 is out

Post by blob »

You rock Skuggs, thanks for the videos!
Post Reply