Page 299 of 400

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 9:00 am
by shayologo
Hello

It's a way to detect easily if player don't play custom party but use game standar party? I want customise this standar party

It's a possibility to add in my mod custom portrait or player must download it from external link and add it manualy?

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 7:31 pm
by Marskilla
Isaac wrote: Mon Apr 08, 2019 8:14 pm
Marskilla wrote: Mon Apr 08, 2019 7:28 pm Went there : viewtopic.php?t=7972 but I didn't found how to damage party by script.
The way to damage the party by script, is to the damageTile global function:

Code: Select all

damageTile(level, x, y, direction, elevation, flags, damageType, power)

Where —flags— can be the following:
https://github.com/JKos/log2doc/wiki/Ob ... amageflags
Thx dude !
___
shayologo wrote: Thu Apr 11, 2019 9:00 am Hello

It's a way to detect easily if player don't play custom party but use game standar party? I want customise this standar party

It's a possibility to add in my mod custom portrait or player must download it from external link and add it manualy?
I would check champion's name class and level. If the name, the class and the level of each four champions are standard it's high probability that it is the default party.

Here is a working example with level and names :

Code: Select all

function testDefaultParty()
	name1 = party.party:getChampion(1):getName()
	name2 = party.party:getChampion(2):getName()
	name3 = party.party:getChampion(3):getName()
	name4 = party.party:getChampion(4):getName()
	
	level1 = party.party:getChampion(1):getLevel()
	level2 = party.party:getChampion(2):getLevel()
	level3 = party.party:getChampion(3):getLevel()
	level4 = party.party:getChampion(4):getLevel()
	
	if (name1 == "Shadow" and name2 == "Mulrag" and name3 == "Fang" and name4 == "Astaroth" and level1 == 1 and level2 == 1 and level3 == 1 and level4 == 1 ) then
		hudPrint("Default Party")
	else
		hudPrint("Custom Party")
	end
	
end	
You can go further with class, sex, skills with the "get" methods here : http://www.grimrock.net/modding/scripti ... /#Champion

Once you know it's the standard party, you can customise what you want with the "set" methods (same url than above)
___

I'm currenlty working on a custom dungeon. I exported it to test it with standard conditions.

As long as I play it straightforward, evrything is fine.

But If I save, quit and then load the savegame, multiple bugs appear ! Buttons does'nt work anymore, initial state are not respected, etc.

As I use many add-ons ( sxtown, sxriver, vb under dungeon) I suspected a Ram problem. I decreased the texture quality. The problem is still there. Any Idea where it can come from ? Did you experiences somthing similar ?

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 7:33 pm
by Pompidom
minimalsavestate

change the "minimalsavestate = true" to false on the objects that pose a problem.

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 7:47 pm
by Marskilla
Pompidom wrote: Thu Apr 11, 2019 7:33 pm minimalsavestate

change the "minimalsavestate = true" to false on the objects that pose a problem.
THAT is a quick answer. :o

Is there a global or do I have to test every object ? And How do I change this property ? using a script ? didn't found it with the GUI on buttons, doors...

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 7:57 pm
by Marskilla
Ouch :

Image

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 8:00 pm
by Pompidom
in the notepad files of the custom assets you copied,
you will find these objects and they usually contain a line with minimalsavestate

https://ibb.co/S7hp72g

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 8:04 pm
by Marskilla
Ok, I get it. Man, you rock.

Most of the problems come from the "under dungeon" tileset ( https://www.nexusmods.com/legendofgrimrock2/mods/87 )

I' will try to change these and will return with a result !

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 8:14 pm
by Pompidom
use ctrl + alt + I (capital i)
in notepad++
and fill in stone to get quicker to the stone_button object

Only change the objects that really need it. Don't go start changing everything to false.
And in some occasions it can be worthwhile to change staticshadow to false as well in case of movement

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 8:26 pm
by Marskilla
I just noticed I also have the problem with standard objets : metal_fence.

It is not possible to modify the original but is it possible to override the property in a custom object ?

I tried somthing like :

Code: Select all

defineObject{
	name = "mars_metal_fence",
	baseObject = "base_metal_fence",
	minimalSaveState = false,
}
but it' doesn't work.

Re: Ask a simple question, get a simple answer

Posted: Thu Apr 11, 2019 8:36 pm
by Marskilla
Another question : is there an object which is an invisible wall, which is on the map as a wall and that does'nt consume a whole square ?