Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
What spell?
Re: Ask a simple question, get a simple answer
Any, even Light. This is annoying to test, since it takes 3 minutes to export (if it doesn't randomly fail) plus getting into game...
I tried finding any onSpellCast hooks and commented out all addTrait() instances but didn't help
Re: Ask a simple question, get a simple answer
just a tip for exporting files,
put graphics on low before you start up the editor and export your mod
or simply install that 4 gb patch
put graphics on low before you start up the editor and export your mod
or simply install that 4 gb patch
Re: Ask a simple question, get a simple answer
Speaking of which, anyone else gets this sometimes?
I've been working on this mod for nearly a year but this only started happening like 2~3 months ago
I've been working on this mod for nearly a year but this only started happening like 2~3 months ago
Re: Ask a simple question, get a simple answer
No.
It would be helpful if you give more details.
Are you exporting while on "low graphics settings" This is important! Or at least using the 4 GB patch?
Have you used any of the available custom asset packs from other modders that might interfere?
Since you are using custom classes, are you taking the time to create a new custom party when testing out your .dat file?
When I introduced custom classes in my mod, using the default party to "quickly" test the newly created .dat file caused similar issues.
And I had to take the time to create a new party every time I wanted to test my new .dat file.
It would be helpful if you give more details.
Are you exporting while on "low graphics settings" This is important! Or at least using the 4 GB patch?
Have you used any of the available custom asset packs from other modders that might interfere?
Since you are using custom classes, are you taking the time to create a new custom party when testing out your .dat file?
When I introduced custom classes in my mod, using the default party to "quickly" test the newly created .dat file caused similar issues.
And I had to take the time to create a new party every time I wanted to test my new .dat file.
Re: Ask a simple question, get a simple answer
You might be on to somethingPompidom wrote: ↑Thu Oct 17, 2019 5:45 am No.
It would be helpful if you give more details.
Are you exporting while on "low graphics settings" This is important! Or at least using the 4 GB patch?
Have you used any of the available custom asset packs from other modders that might interfere?
Since you are using custom classes, are you taking the time to create a new custom party when testing out your .dat file?
When I introduced custom classes in my mod, using the default party to "quickly" test the newly created .dat file caused similar issues.
And I had to take the time to create a new party every time I wanted to test my new .dat file.
Recently I started testing my mod with this function to quickly create a default test party (the goal is to work as a failsafe if the player chooses to not create a party or import one):
SpoilerShow
Code: Select all
function setDefaultParty()
local champion = nil
for c=1,4 do
champion = party.party:getChampionByOrdinal(c)
-- Reset Level
champion:resetExp(0)
-- Reset Skills
for i=1,#skillNames do
local s = champion:getSkillLevel(skillNames[i])
champion:trainSkill(skillNames[i], s * -1, false)
end
-- Remove items
for s=1,32 do champion:removeItemFromSlot(s) end
end
champion = party.party:getChampionByOrdinal(1)
champion:setRace("insectoid")
champion:setClass("monk")
champion:addTrait("persistence")
champion:trainSkill("heavy_weapons_c", 1, false)
champion:trainSkill("athletics", 1, false)
champion = party.party:getChampionByOrdinal(2)
champion:setRace("lizardman")
champion:setClass("assassin_class")
champion:addTrait("wide_vision")
champion:trainSkill("light_weapons_c", 1, false)
champion:trainSkill("critical", 1, false)
champion = party.party:getChampionByOrdinal(3)
champion:setRace("ratling")
champion:setClass("corsair")
champion:addTrait("rodent")
champion:trainSkill("firearms", 1, false)
champion:trainSkill("alchemy", 1, false)
champion = party.party:getChampionByOrdinal(4)
champion:setRace("human")
champion:setClass("elementalist")
champion:addTrait("lore_master")
champion:trainSkill("elemental_magic", 1, false)
champion:trainSkill("concentration", 1, false)
for c=1,4 do
champion = party.party:getChampionByOrdinal(c)
champion:setHealth(champion:getMaxHealth() * 0.9)
champion:setEnergy(champion:getMaxEnergy() * 0.9)
end
end
Re: Ask a simple question, get a simple answer
Does your mod produce a .dat file that is over 100 MB? The filesize limit for Steam Workshop is somewhere close to that.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Can you do anything with the monstergroup component?
A code that I expect to be like
results in a crash "attempt to index global "twigroot_pair_1" ( a nil value)" when twigroot_pair_1 absolutely exists.
A code that I expect to be like
Code: Select all
twigroot_pair_1.monstergroup:getAIState()
Re: Ask a simple question, get a simple answer
That means twigroot_pair_1 does not exist. MonsterGroupComponent, upon first updating, spawns its monsters and destroys its GameObject.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.