Page 6 of 17
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 11:50 am
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.
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 12:15 pm
by Grimfan
Brilliant stuff Skuggs! Your tutorials are golden.
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 2:45 pm
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?
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 4:09 pm
by Vice Dellos
tnx skugg these videos are awesome
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 6:05 pm
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
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Tue Oct 28, 2014 7:16 pm
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?
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Wed Oct 29, 2014 1:33 am
by Faerghail
Thank you very much for your tutorials Skugg
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Wed Oct 29, 2014 2:04 am
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 ?
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Wed Oct 29, 2014 7:57 am
by Mysterious
Hi. This a dumb question but how do I enter the Game Console like skuggs did?
Re: Editor Tutorials on YouTube - part 9 is out
Posted: Wed Oct 29, 2014 8:14 am
by blob
You rock Skuggs, thanks for the videos!