Home » MODDING HQ 1.13 » v1.13 General Development Talk » Slay
Slay[message #348220] Fri, 13 January 2017 15:20 Go to next message
Vincent J. Claymore

 
Messages:270
Registered:February 2011
Slay is a lot of trouble:
- first you have to have luck that he even exists (unless you set all terrorists to be available in the INI)
- then you have to find him randomly
- they you have to give him the Diskette / beat him into submission
- then you have to make sure he doesn't get to meet Flo
- then you lose him anyway after one week (again, unless you make him stay permanently in the INI)
- then he costs $3300/day, which is quite a bit
- AND THEN he has a seemingly high chance to randomly disappear at the top of every hour...

I know, he is basically a slave and has all the motivation to abandon you once he is unsupervised, but please make this optional. Slay is already really hard to get and keep, having him randomly disappear (without so much as a comment from you other mercs or a popup window or anything) just makes it super tedious, because you basically have to save and reload every hour to keep him from disappearing.


tl;dr: Could you please make the "Slay randomly disappears when left alone"-mechanic optional in the INI?
Re: Slay[message #349440 is a reply to message #348220] Sat, 08 April 2017 18:54 Go to previous messageGo to next message
sevenfm

 
Messages:1278
Registered:December 2012
Location: South Urals
Quote:
AND THEN he has a seemingly high chance to randomly disappear at the top of every hour...

15% chance every hour to leave.

void HourlyCheckIfSlayAloneSoHeCanLeave()
{
	SOLDIERTYPE *pSoldier;
	pSoldier = FindSoldierByProfileID( SLAY, TRUE );
	if( !pSoldier )
	{
		return;
	}
	if( pSoldier->flags.fBetweenSectors )
	{
		return;
	}
	if( !pSoldier->bActive || !pSoldier->stats.bLife )
	{
		return;
	}
	if( PlayerMercsInSector( (UINT8)pSoldier->sSectorX, (UINT8)pSoldier->sSectorY, pSoldier->bSectorZ ) == 1 )
	{
		if( Chance( 15 ) )
		{
			pSoldier->ubLeaveHistoryCode = HISTORY_SLAY_MYSTERIOUSLY_LEFT;
			TacticalCharacterDialogueWithSpecialEvent( pSoldier, 0, DIALOGUE_SPECIAL_EVENT_CONTRACT_ENDING_NO_ASK_EQUIP, 0, 0 );
		}
	}
}



Stable 7609+fix (21.05.2017)
Stable 7609+AI (r473 21.08.2017)
Improved weapon sounds
Youtube channel


Re: Slay[message #349813 is a reply to message #349440] Thu, 18 May 2017 11:04 Go to previous messageGo to next message
Cancerman Of The Opera

 
Messages:20
Registered:May 2017
Location: The far north of Sweden.
Is there a option to disable the 15%?
I have looked through the tabledata folder but cant seem to find that option anywhere.



"Armed to the teeth. To the war zone. Tonight no ones going home!"

Re: Slay[message #349815 is a reply to message #349813] Thu, 18 May 2017 13:25 Go to previous messageGo to next message
The_Bob

 
Messages:346
Registered:May 2009
Location: Behind you.
It's not externalized. I can put it in the ini settings, so it could be set to zero to disable this feature.

Re: Slay[message #349816 is a reply to message #349815] Thu, 18 May 2017 14:00 Go to previous messageGo to next message
silversurfer

 
Messages:2134
Registered:May 2009
Why externalize it? The easiest way to keep him from leaving is to have at least one other merc in the same sector. Slay is just a terrorist asshole who will take the first chance to disappear when you're not looking. Functionality is good as it is in my opinion.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: Slay[message #349818 is a reply to message #349815] Thu, 18 May 2017 15:02 Go to previous messageGo to next message
Cancerman Of The Opera

 
Messages:20
Registered:May 2017
Location: The far north of Sweden.
That would be awesome! Thanks a lot.



"Armed to the teeth. To the war zone. Tonight no ones going home!"

icon10.gif  Re: Slay[message #349820 is a reply to message #349816] Thu, 18 May 2017 17:50 Go to previous messageGo to next message
The_Bob

 
Messages:346
Registered:May 2009
Location: Behind you.
silversurfer wrote on Thu, 18 May 2017 14:00
Why externalize it?


  1. Because we can
  2. Because it came up
  3. Because why not?

...Or at least that's what I thought were the criteria for adding stuff to 1.13. As in, either one of them would be good enough.

Re: Slay[message #349823 is a reply to message #349820] Thu, 18 May 2017 18:31 Go to previous messageGo to next message
silversurfer

 
Messages:2134
Registered:May 2009
We can do a lot of things. That doesn't mean we have to, especially if it isn't necessary (in this case another easy solution already exists) and just blows up Ja2_Options.ini. Actually in this specific case you might just re-purpose SLAY_STAYS_FOREVER because "forever" means "forever, dammit!", doesn't it?



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: Slay[message #349824 is a reply to message #349823] Thu, 18 May 2017 19:38 Go to previous messageGo to next message
The_Bob

 
Messages:346
Registered:May 2009
Location: Behind you.
That was the first thing I checked and was surprised that it didn't do that already. I guess keeping the ini file more simple is a fair trade for the extra flexibility we'd get by adding Slay's chance of leaving as another option. Then again IMO the opportunity to keep the config file lean and simple was missed long ago and the only size consideration we have left for Ja2_Options.ini is what the ini reader can take in without exploding.

I like both solutions and being the indecisive person I am, I'll wait for a bit and see how others see this change.

Re: Slay[message #349826 is a reply to message #349824] Fri, 19 May 2017 05:22 Go to previous messageGo to next message
Buggler

 
Messages:216
Registered:November 2009
@The_Bob

If you have some spare time,
could you look whether it's possible to remove the win7 16bit desktop color restriction for windowed mode, without resorting to registry tweaks?

Since you are able to fix some of the win10 issues. happy



No savegame (just before e bug occurs), no cure.

'Not everything that counts can b counted, n not everything that can b counted counts' - Albert Einstein
I may answer/reply in my old public posts & prefer PM over e former [FUDforum's PM suxx]
Re: Slay[message #349829 is a reply to message #349826] Fri, 19 May 2017 13:25 Go to previous messageGo to next message
The_Bob

 
Messages:346
Registered:May 2009
Location: Behind you.
Buggler wrote on Fri, 19 May 2017 05:22

If you have some spare time,
could you look whether it's possible to remove the win7 16bit desktop color restriction for windowed mode, without resorting to registry tweaks?


What's so hard about using the .reg files? If it's a serious problem I can try to put together a script that would try to generate and add the registry entries, but anyway that's a matter for another thread.

Have you tried ExShell?

[Updated on: Fri, 19 May 2017 13:26]


Re: Slay[message #349831 is a reply to message #349829] Fri, 19 May 2017 16:59 Go to previous messageGo to next message
The_Bob

 
Messages:346
Registered:May 2009
Location: Behind you.
Well I couldn't make up my mind so I added both things. Grab the exe here and let me know if it works ok.

Re: Slay[message #349837 is a reply to message #349829] Sat, 20 May 2017 04:35 Go to previous message
Buggler

 
Messages:216
Registered:November 2009
The_Bob wrote on Fri, 19 May 2017 10:25

What's so hard about using the .reg files? If it's a serious problem I can try to put together a script that would try to generate and add the registry entries, but anyway that's a matter for another thread.

Have you tried ExShell?


QOL for non-computer savvy gamers to multitask easily without distorting colors on their other programs.
W/o knowledge of the .reg fix, gamers have to be mentally prepared of solely running Ja2 in 16bit desktop color or tolerate the slow task-switching of fullscreen mode.

Re: ExShell
Not a fan if the sourcecode is not publicly available. happy



No savegame (just before e bug occurs), no cure.

'Not everything that counts can b counted, n not everything that can b counted counts' - Albert Einstein
I may answer/reply in my old public posts & prefer PM over e former [FUDforum's PM suxx]
Previous Topic: Weapon status
Next Topic: Merc Profile Editor
Goto Forum:
  


Current Time: Thu Aug 24 09:50:33 EEST 2017

Total time taken to generate the page: 0.00995 seconds