Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Building more than 5 factories causes Commanders' orders screen to glitch out. #3521

Closed
wzdev-ci opened this issue May 31, 2012 · 24 comments
Closed

Comments

@wzdev-ci
Copy link
Contributor

resolution_later type_bug | by Shadow Wolf TJC


Now this is only if you're modding the game, but when you have more than 5 of a single factory type (such as more than 5 Cyborg Factories, or more than 5 VTOL Factories) present, it screws with Commanders' orders menu, by pushing some factory numbers off-screen with non-existent buttons. However, the factories seem to work fine otherwise.


Issue migrated from trac:3521 at 2022-04-16 09:51:45 -0700

@wzdev-ci
Copy link
Contributor Author

Shadow Wolf TJC uploaded file wz2100-20120531_151432-Sk-Rush.jpg (340.5 KiB)

10 factories on-screen, with a Commander selected. Note the messed-up orders screen on the bottom left.
wz2100-20120531_151432-Sk-Rush.jpg

@wzdev-ci
Copy link
Contributor Author

vexed changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

vexed changed resolution from `` to later

@wzdev-ci
Copy link
Contributor Author

vexed changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

vexed commented


This isn't a bug, it is a limitation.
That is one of the reasons why the game has a hard cap to the number of buildings you can make.

Right now, nothing more than 5 is supported.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 1, 2012

Shadow Wolf TJC commented


So I take it that you're not interested in fixing this BECAUSE it's a limitation of the core game, and because you don't care about the modding community, right? Well then, if the devs won't fix this, then who will? :(

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 1, 2012

vexed commented


Replying to Warzone2100/old-trac-import#3521 (comment:2):

So I take it that you're not interested in fixing this BECAUSE it's a limitation of the core game, and because you don't care about the modding community, right? Well then, if the devs won't fix this, then who will? :(

O_o

... ::sigh::

Your not even in the ballpark.

If someone wants to fix the GUI, then fine, but since this is a current engine limitation, and not a bug, I don't see how you end up making those unfounded accusations.

Trac is for bugs + patches, not feature requests.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 2, 2012

Shadow Wolf TJC commented


Sorry.

@wzdev-ci
Copy link
Contributor Author

Shadow Wolf TJC uploaded file extra commander factory icons.rar (38.0 KiB)

I'm still interested in seeing this bug fixed, so I've prepared a few new images for use with the orders menu, 2 of which are blank button icons for a more modular use. However, I don't quite know how to make them show up, sadly. I've tried messing around with intfac.img (which I presume will need to be modified), but it doesn't seem to work at all.

@wzdev-ci
Copy link
Contributor Author

Shadow Wolf TJC changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

Shadow Wolf TJC changed resolution from later to ``

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 3, 2012

vexed changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 3, 2012

vexed changed resolution from `` to later

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 3, 2012

vexed commented


The interface image is only part of the issue, the other part is the code itself.
It isn't as simple as just changing the gfx, unfortunately.
comment:2 still applies to this limitation.

Feel free to open it back up when someone comes up with a patch that will fix the limitation.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 5, 2012

Shadow Wolf TJC changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 5, 2012

Shadow Wolf TJC commented


I've been taking a look at the code at github, and while I haven't changed anything (I'd only make such changes on my own fork of the Warzone 2100 repository), it seems that src/intfac.h will need some work. However, I'm still trying to find out what scripts control how the orders screen is displayed, so that I could work out a way to display some of the extra buttons below others.

Edit: I believe that this block of code within src/intorder.cpp may need to be changed:

	{
		ORDBUTCLASS_FACTORY,
		DSO_ASSIGN_PRODUCTION,
		DSS_ASSPROD_MASK,
		ORD_BTYPE_BOOLEAN_COMBINE,
		ORD_JUSTIFY_CENTER | ORD_JUSTIFY_NEWLINE,
		IDORDER_ASSIGN_PRODUCTION,
		5,0,
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FACHILITE,	IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE	},
		{STR_DORD_FACTORY,	STR_DORD_FACTORY,	STR_DORD_FACTORY,	STR_DORD_FACTORY,	STR_DORD_FACTORY},
		{ 0x01 << DSS_ASSPROD_SHIFT, 0x02 << DSS_ASSPROD_SHIFT, 0x04 << DSS_ASSPROD_SHIFT,
		  0x08 << DSS_ASSPROD_SHIFT, 0x10 << DSS_ASSPROD_SHIFT }
	},
	{
		ORDBUTCLASS_CYBORGFACTORY,
		DSO_ASSIGN_CYBORG_PRODUCTION,
		DSS_ASSPROD_MASK,
		ORD_BTYPE_BOOLEAN_COMBINE,
		ORD_JUSTIFY_CENTER | ORD_JUSTIFY_NEWLINE,
		IDORDER_ASSIGN_CYBORG_PRODUCTION,
		5,0,
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FACHILITE,	IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE	},
		{STR_DORD_CYBORG_FACTORY,	STR_DORD_CYBORG_FACTORY,	STR_DORD_CYBORG_FACTORY,	STR_DORD_CYBORG_FACTORY,	STR_DORD_CYBORG_FACTORY},
		{ 0x01 << DSS_ASSPROD_CYBORG_SHIFT, 0x02 << DSS_ASSPROD_CYBORG_SHIFT, 0x04 << DSS_ASSPROD_CYBORG_SHIFT,
		  0x08 << DSS_ASSPROD_CYBORG_SHIFT, 0x10 << DSS_ASSPROD_CYBORG_SHIFT }
	},
	{
		ORDBUTCLASS_VTOLFACTORY,
		DSO_ASSIGN_VTOL_PRODUCTION,
		DSS_ASSPROD_MASK,
		ORD_BTYPE_BOOLEAN_COMBINE,
		ORD_JUSTIFY_CENTER | ORD_JUSTIFY_NEWLINE,
		IDORDER_ASSIGN_VTOL_PRODUCTION,
		5,0,
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FAC1UP,		IMAGE_ORD_FAC2UP,	IMAGE_ORD_FAC3UP,	IMAGE_ORD_FAC4UP,	IMAGE_ORD_FAC5UP	},
		{IMAGE_ORD_FACHILITE,	IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE,IMAGE_ORD_FACHILITE	},
		{STR_DORD_VTOL_FACTORY,	STR_DORD_VTOL_FACTORY,	STR_DORD_VTOL_FACTORY,	STR_DORD_VTOL_FACTORY,	STR_DORD_VTOL_FACTORY},
		{ 0x01 << DSS_ASSPROD_VTOL_SHIFT, 0x02 << DSS_ASSPROD_VTOL_SHIFT, 0x04 << DSS_ASSPROD_VTOL_SHIFT,
		  0x08 << DSS_ASSPROD_VTOL_SHIFT, 0x10 << DSS_ASSPROD_VTOL_SHIFT }
	},

I'd personally want to add the extra factory assignment buttons below the others (given the limited space in the orders screen), though I wonder how we're going to do that.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

Shadow Wolf TJC changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

Shadow Wolf TJC changed resolution from later to ``

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

Shadow Wolf TJC commented


While I've added in some code that should hopefully fix this ticket, it's only a temporary solution. Later on, we should probably look into finding out how to add the extra factory buttons in a way that's acceptable.

ShadowWolfTJC/warzone2100@392df9b

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

vexed commented


This doesn't fix anything though, you just are removing a safety net.

As for which files, I don't recall offhand, but usually, it is spread out in a few files.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

vexed changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

vexed changed resolution from `` to later

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

vexed commented


Oh, I forgot to mention, no need to reopen the ticket.
I get the mail, so when it comes time to open it (or there is a working patch), then we will open it.

Your just causing more noise with trac when you open them.
"Later" is special, even though trac lists it as closed, it isn't actually closed as far as we are concerned.

@wzdev-ci wzdev-ci closed this as completed Dec 6, 2012
@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 6, 2012

Shadow Wolf TJC commented


I see. Sorry about that.

Sigh. I wish that I could create my own snapshots of Warzone 2100 using the resources that are available on my fork. Then I could actually see for myself if the code changes would actually work instead of having to rely upon others to do the actual testing. :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant