| View previous topic :: View next topic |
| Author |
Message |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Mon Mar 24, 2014 11:46 pm Post subject: |
|
|
Update: Version 1.2.2 tweaks the equations to make crew happiness decay at a rate more similar to that of the unmodded game. (Previous versions were easier than the unmodded game.) Let me know if it's too hard to keep them happy.
Last edited by AdamMil on Tue Mar 25, 2014 11:41 am; edited 1 time in total |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Tue Mar 25, 2014 11:23 am Post subject: |
|
|
Update: Version 1.2.3 rewrites the happiness equations based on a long and detailed mathematical analysis. I have much more confidence now that they'll give pretty reasonable results for all crew sizes and expedition lengths, so I don't think they'll change anymore, unless I made a mistake. They are optimized for higher difficulty levels -- the lower difficulty levels became easier than they should be -- but few of us play below Rogue anyway.
It also fixes a bug in the original game that caused the crew morale to change (usually to drop substantially) when you viewed the "Divide the Plunder" screen, even if you chose not to divide the plunder.
Both of these are part of the happiness mod. |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Tue Mar 25, 2014 12:18 pm Post subject: |
|
|
Does this fix the bug where, if you have enough gold per crewman your men will always be happy? |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Tue Mar 25, 2014 12:36 pm Post subject: |
|
|
| jlangsdo wrote: | | Does this fix the bug where, if you have enough gold per crewman your men will always be happy? | Yes, that was the original purpose of the mod. (I realize it probably won't be popular. :-)
It also makes your men take into account the length of the voyage when dividing the plunder. Previously, they only cared about the size of the share, and would be happy with ridiculously small amounts of gold. (On Swashbuckler a mere 51 gold per man, not counting the captain's share, guaranteed maximal happiness even after years at sea.) Now they expect quite a bit more.
These aren't new features, though. The recent changes in 1.2.x just fine-tune the equations. They look good when I graph them, but I haven't playtested them yet... |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Mon Nov 10, 2014 2:30 pm Post subject: |
|
|
AdamMil, How did you get the rutters to display only half each? [Im on a mac and have to change the code myself]. I only remember the code asking if Rutters were 0 or 1. Was there some dormant code that you found or did you write something more complicated |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Mon Nov 10, 2014 2:57 pm Post subject: |
|
|
| dogcigar wrote: | | AdamMil, How did you get the rutters to display only half each? [Im on a mac and have to change the code myself]. I only remember the code asking if Rutters were 0 or 1. Was there some dormant code that you found or did you write something more complicated | I found the code that displays the settlements on the map and replaced the part that checked for the rutter with the following: | Code: | movzx eax, byte [g_player.specialItems+Rutter] ; 0 <= eax <= 2
cmp al, 2 ; does the player have the spanish rutter?
jae 44796Fh ; yes, so jump to the settlement display code.
; ebp is the settlement index. if the player has the dutch rutter
; (eax==1), the next line is index & 1 (i.e. index is odd - true
; 50% of the time). otherwise, with no rutter (eax==0), it's
; index & 0 (i.e. false)
test eax, ebp
jnz 44796Fh ; 50% of time with dutch rutter, display it
jmp 447962h ; otherwise, skip over the display code |
In the PC exe, the memory offset of the map display code is around the jump offsets given in the snippet above (i.e. around 447962h). On the Mac it's bound to be elsewhere, but you know how to find it. :-) (See what code accesses the rutter variable.) Of course, the registers are probably different too.
Last edited by AdamMil on Mon Nov 10, 2014 10:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Mon Nov 10, 2014 3:23 pm Post subject: |
|
|
Thanks heaps |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Mon Nov 10, 2014 6:35 pm Post subject: |
|
|
Yep it was different. EBP was a constant and ECX the variable which means any codes I posted in the past are probably only patchable for the mac! |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Mon Nov 10, 2014 10:30 pm Post subject: |
|
|
| dogcigar wrote: | | Thanks heaps | Glad to help. :-) |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Thu Nov 20, 2014 12:47 am Post subject: worthy of a facebook like |
|
|
Can't believe I missed trying this before now! Still just trying it out tho. I just downloaded and installed yesterday so I should have the latest version. Questions comments:
I can't get it to save game. Crashed during a dance sequence.
Are you sure the ballistics equations are comparable for 18th century period? ref: http://arc.id.au/CannonBallistics.html. It seems all the shots have near unlimited range and run straight paths with no fall off. A SOTL was approx. 150-170 ft. in length and from several times that length any shot still fires fast and true. Remember gunpowder quality was a big issue in the past. A modern shotgun with chainshot still travels slow enough to be distinctly visible when fired.
By the way loved the exe you made. This what I was hoping to achieve more or less with a new mod manager. What was it coded in? |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Thu Nov 20, 2014 7:05 am Post subject: Re: worthy of a facebook like |
|
|
| parksbanyon wrote: | | I can't get it to save game. | Did you use the Iron-man mod? (It's enabled by default.) It disables manual saving and loading of your game, and only saves when you quit. You can disable that mod if you like.
| parksbanyon wrote: | | Crashed during a dance sequence. | Hmm. I have my doubts that it's caused by my mods, but I can't promise. (I played about 50 hours without any trouble.) I don't suppose you can reproduce it reliably?
| parksbanyon wrote: | | Are you sure the ballistics equations are comparable for 18th century period? | Hah, I doubt it. But looking at the link you posted I would say that in my mod the cannonballs travel at less than 1/3rd the speed of 1800's cannon. The thing is that in the game the ships are so much closer together than in reality...
If you'd like to mess with the speeds yourself, I posted the exe and memory offsets in my original thread about the mod: http://hookedonpirates.com/forums/viewtopic.php?p=91187#91187. On the previous page there's some info about changing the shot elevation, though I'm not sure if it's still accurate for the final version.
| parksbanyon wrote: | | It seems all the shots have near unlimited range and run straight paths with no fall off. | The range is certainly limited, although it's about 20-30% greater than it used to be.
| parksbanyon wrote: | | A modern shotgun with chainshot still travels slow enough to be distinctly visible when fired. | I increased the cannonball speeds without changing the proportion between the different types of shot. In the original game, roundshot was 33% faster than chainshot, and it's the same in my mod. It's possible to change the ratio, though.
| parksbanyon wrote: | | By the way loved the exe you made. This what I was hoping to achieve more or less with a new mod manager. What was it coded in? | I wrote the mods in assembly using a tool I posted in the forums: http://hookedonpirates.com/forums/viewtopic.php?t=6769 And I wrote the mod "manager" itself in C#. It's really quite a simple program because it doesn't have to deal with patching an exe that could be in some arbitrary state. Rather, it generates the patched exe each time from a clean state, which makes the process easier. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Fri Nov 21, 2014 4:12 pm Post subject: thanks for the feedback |
|
|
On the save, my bad, didn't read about the quit.
thanks for the info about the exe I look at it and give it a go. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Fri Nov 21, 2014 4:18 pm Post subject: forgot |
|
|
The dance is crash is probably due to a low low end AMD apu. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Wed Dec 17, 2014 7:25 am Post subject: selection |
|
|
I had been running the full suite just to get acclimated to it, and because of the nif mods I am doing I wanted to disable just the Ironman mod. I wasn't able to do such. Should I be able to select deselect ANY mod combo? Or is it set up as a "set and forget"? |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Wed Dec 17, 2014 8:38 am Post subject: Re: selection |
|
|
| parksbanyon wrote: | | I had been running the full suite just to get acclimated to it, and because of the nif mods I am doing I wanted to disable just the Ironman mod. I wasn't able to do such. Should I be able to select deselect ANY mod combo? Or is it set up as a "set and forget"? | Any combo should work. Of course, you have to generate the new executable and overwrite your Pirates!.exe file again.
Are you saying that deselecting just the ironman mod doesn't work? If so, what happens? |
|
| Back to top |
|
 |
|