Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory and Headquarters Number of Private don't match #1253

Closed
Unterwald opened this issue Jun 7, 2020 · 8 comments · Fixed by #1256
Closed

Inventory and Headquarters Number of Private don't match #1253

Unterwald opened this issue Jun 7, 2020 · 8 comments · Fixed by #1256

Comments

@Unterwald
Copy link

Hello,
I found out, that the number of privates in the inventory is X+1 to the number in the Headquarters
image
Best regards, Unterwald

@Flow86
Copy link
Member

Flow86 commented Jun 7, 2020

Hi,
I think one private is reserved inside the head-quarters

@Unterwald
Copy link
Author

Unterwald commented Jun 7, 2020

I opened the Mission from the old roman campaign (VII-Die Schlange), and it was still there, even if i turn the reserve to 0.

@Flamefire
Copy link
Member

The soldiers in "inventur" are the soldiers in "HQ" + the soldiers in the reserve of the HQ. This works as expected (just tested). So I'm not sure what you mean by "it was still there".

@Unterwald
Copy link
Author

It seems to appear only in the Kampagne-Games...

@Spikeone
Copy link
Member

Spikeone commented Jun 7, 2020

Guess this is caused by using rttr:GetPlayer(p):ClearResources()

@Flamefire
Copy link
Member

@Spikeone spot on! We even have that as TODO:

Flamefire added a commit to Flamefire/s25client that referenced this issue Jun 8, 2020
@Spikeone
Copy link
Member

Spikeone commented Jun 8, 2020

possibly the reason for this one: #1132

@Flamefire
Copy link
Member

Unfortunately not. The replay in the linked issue does not have a lua file

Flamefire added a commit to Flamefire/s25client that referenced this issue Jun 8, 2020
Flamefire added a commit to Flamefire/s25client that referenced this issue Jun 9, 2020
Flamefire added a commit to Flamefire/s25client that referenced this issue Jun 9, 2020
Flamefire added a commit to Flamefire/s25client that referenced this issue Jun 14, 2020
Flow86 pushed a commit that referenced this issue Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants