ALexusB:
<!--QuoteBegin-ALexusB+Jun 24 2005, 08:32 AM--><div class='quotetop'>QUOTE(ALexusB @ Jun 24 2005, 08:32 AM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-NathanKell+Jun 23 2005, 05:48 PM--><div class='quotetop'>QUOTE(NathanKell @ Jun 23 2005, 05:48 PM)</div><div class='quotemain'><!--QuoteEBegin-->ALexusB: Hey, great!
How are you handling relation switch after boarding? I couldn't get a ship to detach and enter a neutral group successfully--if it was not the commander, nothing would happen, and if commander, entire group would switch.
Do you have to force a reload to sea?
{ There's a ship_change_group message, but it's never used, and it crashed the engine every time I tried it }
<div align="right">[snapback]116610[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Thanks for good idea <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid="
" border="0" alt="smile.gif" />
I just killed (sank) one of them (my companion or enemy)
<div align="right">[snapback]117121[/snapback]</div>
<!--QuoteEnd--></div><!--QuoteEEnd-->
Ah, OK. Well, that works. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid="
" border="0" alt="smile.gif" />
<more below>
<!--QuoteBegin-ALexusB+Jun 24 2005, 08:32 AM--><div class='quotetop'>QUOTE(ALexusB @ Jun 24 2005, 08:32 AM)</div><div class='quotemain'><!--QuoteEBegin-->@Do you have to force a reload to sea?@
No <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid="
" border="0" alt="sad.gif" /> I tried many time then created mode "survive in sea" on tartane... but it rechange ship only in 5% case... so I finished try
<div align="right">[snapback]117121[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Hmm. It outright crashed the others, you mean?
That's weird--CCC added a feature just like that to the build a ways back, and it's seemed to work fine.
Or do you mean not changing a ship into a tartane and reloading, but _adding a new ship_?
That I tried, and found that simply calling addship2sea doesn't seem to really do much of anything during sea.
I thought about forcing a reload on add, but then there's the problem of setting all non-permanent (i.e. encounter-fantom, "delete_at_end") groups to _temporary_ permament so they don't disappear on mid-sea-reload, and then set them back again...yeesh.
Maybe you need to just freeze the Sea layers and then unfreeze? Or do some magic refreshing to the task list, or something?
(Oh, right, I was adding that tartane as part of a new group. Can you add a new ship to an existing group and get it to show immediately on add2sea?)
<!--QuoteBegin-ALexusB+Jun 24 2005, 08:32 AM--><div class='quotetop'>QUOTE(ALexusB @ Jun 24 2005, 08:32 AM)</div><div class='quotemain'><!--QuoteEBegin-->so, my aboard mod create battle companion vs enemy and one of them will have killed
And aboard can be between any 2 computers (france vs spaine) They just have to be close to each other
I want to make auto rob of cargo goods and change ships... but didn't think to stay them on water...
Thanks!
<div align="right">[snapback]117121[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid="
" border="0" alt="par-ty.gif" />
When I was going through Sea.c when I was doing Fleet, I noticed some stuff about TaskList. What I'm thinking is maybe a newly created group has to be added to the tasklist before it 'counts' as active?
Hmm, maybe that's only on newly-created groups--maybe swapping a ship from one existing group to another would work.
The problem would be the whole commander thing--can you successfully detach a commander from a group? If not, maybe only allow commander-ships to be sunk (aka 'they fight to the death') as a cheap solution.
I bring this up because I had these problems in the Surrender-on-sea mod--I couldn't get a ship to leave its old group and be part of a new one--if it was not the commander of the old group it simply wouldn't switch; but if it was the commander, the _entire group_ would switch to the new group with it.
(I was changing the commander of the old group in the latter case, but that too didnt take effect).
So my solution was to use the setofficer2shipafterabordage thing to make it stop fighting the player's group--AI ships would then fire on it, but at least I could, with a hook in updatesituation, prevent AI from choosing it as vessel to attack, and in hulldamage I could make the hits not do any damage.
Good luck with getting this stuff working, and if I figure anything out I'll let you know (and I hope you'll do the same. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid="
" border="0" alt="smile.gif" /> ). <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid="
" border="0" alt="par-ty.gif" />