Jump to content


Photo

SoD, BG2EE - Green blood, and how to make configurable component installation

SoD BG2 mod UI gore

18 replies to this topic

#1 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 04 March 2017 - 12:52 AM

- - How to make a green blood in SoD and BG2EE, to replace the default - red one? - - How to make a configurable component installation of the mod? For an example, for my mod I have something like that for now:
BACKUP ~ContagionGUImod/backup~	
AUTHOR ~frostysh~
VERSION ~v0.2beta~

BEGIN ~Contagion GUI mod component zero.~
COPY ~ContagionGUImod/CGUIMOD~ ~override~
But I need something different, like "Do you want to install modification to the dialogue box? Yes - No.", if the Yes - one set of files intalled into ovveride, if no - another (basically UI.MENU and BOX5.MOS (V2)), "Do you want to install no blood modification? Yes - No.", if yes - install some *.BAM file, if no - not install. How I can do all of that, thanx.
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#2 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6011 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 04 March 2017 - 04:57 AM

Can't you just do that by adding another component ? So just:

BACKUP ~ContagionGUImod/backup~	
AUTHOR ~frostysh~
VERSION ~xxx~

BEGIN ~Contagion GUI mod component zero.~
COPY ~ContagionGUImod/CGUIMOD~ ~override~

BEGIN ~component2 name~
COPY ~ContagionGUImod/Component2folder~ ~override~

The Component2folder of course contains the files you override...

 

Aka DO YOU REALLY NEED A Yes/No question ?

It can be done... but it's cheesy a bit.

 

Spoiler

 

And advisable to not to be used as you'll have to program it again as the ACTION_READLN will be phased out with upcoming weidu.exe use changes...


Edited by Jarno Mikkola, 04 March 2017 - 04:59 AM.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.

Here's how to install all the stable mods you ever really could want to Infinity Engine games.


#3 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 04 March 2017 - 08:20 PM

Thank to you again, I need to think how to implement all of that into ma snow.
----
----
frostysh_thinking.jpg
----
----
And I am really need only give an ability to choose between components, to somebody who maybe will use ma snow too, Yes/No is not necessary.
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#4 Avenger

Avenger
  • Modders
  • 3681 posts
  • Gender:Male
  • Location:Hungary

Posted 05 March 2017 - 04:04 AM

You can change the blood color in 2 ways:

1 - 'hardcoded for races' - <animid>.ini  - color_blood = <palette entry> - this sets the blood color for a given animation ID.

2 - effect based - opcode 342 with param 1 = <palette entry>, param 2 = 2 



#5 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 06 March 2017 - 12:32 AM

&amp;amp;nbsp;

You can change the blood color in 2 ways:
1 - 'hardcoded for races' - &amp;amp;lt;animid&amp;amp;gt;.ini  - color_blood = &amp;amp;lt;palette entry&amp;amp;gt; - this sets the blood color for a given animation ID.
2 - effect based - opcode 342 with param 1 = &amp;amp;lt;palette entry&amp;amp;gt;, param 2 = 2 

Wow , ahmmm . Looks cool, but just to clarify, what I need to do, which files I need to mod, what is means this "opcode", etc, to obtain the green blood instead of mind disturbing - red? :) . And what a difference between "hardcoded" and effect based?

And how to make stuff in my mod - Install green blood or install invisible blood?

I mean not all may want this both stuff installed...

P.S. Finished exploration of SoD start location on LoB + SCS - pretty fun it was!

Edited by frostysh, 06 March 2017 - 12:35 AM.

"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#6 Avenger

Avenger
  • Modders
  • 3681 posts
  • Gender:Male
  • Location:Hungary

Posted 06 March 2017 - 08:20 AM

If you want to remove red 'for good', then simply replace the color_blood=47 lines with color_blood=54 in all <xxxx>.ini files.

47 is dark red, 54 is dark green.

The install stuff was answered by others earlier, and i can't really add to that.

 

The code is something like this (but i'm not a weidu guru)

COPY_EXISTING_REGEXP GLOB ~....\.ini~
  REPLACE_TEXTUALLY ~color_blood=47~ ~color_blood=54~
BUT_ONLY

Edited by Avenger, 06 March 2017 - 08:21 AM.


#7 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 06 March 2017 - 07:48 PM

thanx I will try it something like that, I hope it will not crash ma' SoD :).
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#8 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 09 March 2017 - 01:44 AM

I have tried - this is my *.tp2 -
BACKUP ~ContagionGUImod/backup~	
AUTHOR ~frostysh~
VERSION ~v0.3~

BEGIN ~Contagion GUI mod component zero.~
COPY ~ContagionGUImod/CGUIMOD~ ~override~

BEGIN ~Green Blood component~
COPY_EXISTING_REGEXP GLOB ~....\.ini~
REPLACE_TEXTUALLY ~color_blood=47~ ~color_blood=55~
BUT_ONLY
And this is what I have get...
[Q:\BGEEGOGSTEAM_backup\BGEEGOGSTEAM\ContagionGuiMod_setup_v03_for_SoD.exe] WeiDU version
24000
In state 29, I expected one of these tokens:
  [2] ~~
Parse error (state 29) at REPLACE_TEXTUALLY

[CONTAGIONGUIMOD_SETUP_V03_FOR_SOD.TP2] PARSE ERROR at line 10 column 1-17
Near Text: REPLACE_TEXTUALLY
        GLR parse error

[CONTAGIONGUIMOD_SETUP_V03_FOR_SOD.TP2]  ERROR at line 10 column 1-17
Near Text: REPLACE_TEXTUALLY
        Parsing.Parse_error
ERROR: parsing [CONTAGIONGUIMOD_SETUP_V03_FOR_SOD.TP2]: Parsing.Parse_error
ERROR: problem parsing TP file [CONTAGIONGUIMOD_SETUP_V03_FOR_SOD.TP2]: Parsing.
Parse_error

FATAL ERROR: Parsing.Parse_error

Press ENTER to exit.

"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#9 Gwendolyne

Gwendolyne
  • Members
  • 132 posts
  • Gender:Male
  • Location:France

Posted 09 March 2017 - 06:57 AM

This should work:

    COPY_EXISTING_REGEXP GLOB ~^.+\.ini$~ ~override~

CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#10 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 10 March 2017 - 02:32 AM

Thanx, I will try it, I hope it will not replace *.ini files in my "override", for an example those created by SCS :) .
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#11 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6011 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 10 March 2017 - 03:58 AM

Thanx, I will try it, I hope it will not replace *.ini files in my "override", for an example those created by SCS :) .

Eh, it would, if they contained the text(color_blood=47)... but, they don't. And every other .ini file the game libraries that contain the text are referred.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.

Here's how to install all the stable mods you ever really could want to Infinity Engine games.


#12 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 11 March 2017 - 05:22 AM

I have tried - installed successfully, and indeed it replaced any *.INI where those text stuff was - and this is not good, I just hope that SCS don't touch that *.INI, Buhhhht - it is not working, the blood is still disturbing red, like a real life blood, but not a green, like in the Serious Sam First Encounter, or The Predator 1,2 movie. Tested on some monsters, and even on some party members of my avatar (bow and stuff, and fists), and me sorry about that :) - no serious damage has been delivered.

This is my *.tp2 snow,

BACKUP ~ContagionGUImod/backup~	
AUTHOR ~frostysh~
VERSION ~v0.3~

BEGIN ~Contagion GUI mod component zero.~
COPY ~ContagionGUImod/CGUIMOD~ ~override~

BEGIN ~Green Blood component~
COPY_EXISTING_REGEXP GLOB ~^.+\.ini$~ ~override~
REPLACE_TEXTUALLY ~color_blood=47~ ~color_blood=54~
BUT_ONLY

And this is my *mod.DEBUG file.

Spoiler

"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg

#13 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6011 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 11 March 2017 - 06:01 AM

frostysh, you did start a new'ish game to test this... aka you are definitely never been in the area in the savegame, in where you test this. Starting a new game also works, as you have not been in the starting area ...

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.

Here's how to install all the stable mods you ever really could want to Infinity Engine games.


#14 Avenger

Avenger
  • Modders
  • 3681 posts
  • Gender:Male
  • Location:Hungary

Posted 12 March 2017 - 01:01 AM

frostysh, you did start a new'ish game to test this... aka you are definitely never been in the area in the savegame, in where you test this. Starting a new game also works, as you have not been in the starting area ...

 

If he successfully modified the animation inis, he doesn't need to make a new game. The blood color always comes from the animation, it isn't saved.


Edited by Avenger, 12 March 2017 - 01:02 AM.


#15 frostysh

frostysh

    THE TRUTH SEEKER

  • Members
  • 227 posts
  • Gender:Not Telling
  • Location:Afghanistan

Posted 12 March 2017 - 01:53 AM

@Jarno Mikkola
---
I almost totally don't understand. What a connection of the new-game start have to the blood color? O_o Nobody saying something like to me before I have mod that.
---
@Avenger
---
But it is not working. Any ideas how I can fix it, of course I am sorry for bothering this forum, I am usually very annoying with questions ;/ .
---
P.S. Using this "---" coz after I have pushed "Post" button, all of the my text is becoming a continuous paragraph, for the hell reason Idkn.
"The monstrous evils of the twentieth century have shown us that the greediest money grubbers are gentle doves compared with money-hating wolves like Lenin, Stalin, and Hitler, who in less than three decades killed or maimed nearly a hundred million men, women, and children and brought untold suffering to a large portion of mankind."
- Eric Hoffer

"Nationalism is an infantile disease. It is the measles of mankind."
- Albert Einstein

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion."
- Steven Weinberg



Reply to this topic



  



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users