View Full Version : Expanded resources.pcx not working


Der PH
Feb 16, 2004, 10:24 AM
I added a lot of new resources to my sweet little private mod. Up to now without big problems. Yesterday I added another one, but I had to expand the resources.pcx, because it finally became too small (space for 36 resources IIRC, so this one was the 37th). No problem in the editor, so I returned to the game and there the resource graphics were completely messed up. On the screen completely wrong graphics were displayed (cows in the water, fish on mountains).

HELP!!!

AFAIR several people added lots of resources in their mods. Could anybody tell me, what I am doing wrong?

Drift
Feb 16, 2004, 10:35 AM
You did add just extra rows? Not any extra columns?

Der PH
Feb 16, 2004, 10:39 AM
Yep!

mrtn
Feb 16, 2004, 04:11 PM
You may have messed up the order of the resources in some way... :hmm:

Amesjustin
Feb 16, 2004, 07:31 PM
upload your resources.pcx and I will take a look at it.

Der PH
Feb 20, 2004, 03:09 AM
Here it is:

Arne
Feb 20, 2004, 05:40 AM
It's a palette problem. The last two colours have to be the green and pink (or any other) but not used beside that in the pcx. Attachemant should work.

Der PH
Feb 20, 2004, 06:04 AM
Thanx alot!
I will test it ASAP.

I don't understand, why a palette problem puts my cows onto the ocean, but I don't have to understand everything, especially when it's about computers. :confused:

Drift
Feb 20, 2004, 06:14 AM
From what I looked, Der PH's palette was fine. The colors used for the background and the boxes were on their right places (254, 255). I couldn't find anything wrong with the file. Could've missed something, but I doubt it's about palette.

You are absolutely certain that the in the editor, correct resources show up (cows for cattle and so on)?

Der PH
Feb 20, 2004, 07:19 AM
Originally posted by Drift
You are absolutely certain that the in the editor, correct resources show up (cows for cattle and so on)?

Not absolutely, but quite sure. I'll take a closer look at this topic on the coming weekend.

When I encountered the problems (ingame), I deleted my 37th resource and returned to the resources.pcx with only 36 fields without the additional lines and everything was fine again. Apart from the additional lines and the 'Gandhi-picture' (which I want to abuse as a'pilgrims'-resource) the two .pcx are identical.

Arne
Feb 20, 2004, 07:31 AM
Oups, sorry. It seems I missed something. Two things: 1st: I attached the wrong file. 2nd: It was NOT the palette, but I tough it was. However it should work now. :D Try the new(!) file in my last post above.

Amesjustin
Feb 20, 2004, 07:36 AM
The file looks fine to me (Nice shipwreck ;) ). Go into your editor after you have all 37 resources and look at the terrain tab and ensure the right resources are listed for each terrain. If they are, then go to the resources tab and make sure each one is pointing to the right graphic. If both tabs look fine and you are still having trouble, post your bix file and I will take as deeper look at the whole problem.

Der PH
Feb 20, 2004, 07:42 AM
Originally posted by Arne
Oups, sorry. It seems I missed something. Two things: 1st: I attached the wrong file. 2nd: It was NOT the palette, but I tough it was. However it should work now. :D Try the new(!) file in my last post above.

What did you change apart from the name?

Drift
Feb 20, 2004, 08:02 AM
I believe I found the problem. Your sixth column resources are 48x49 pixels. The whole sheet is 299 pixels wide when it should be 300. Also, the lowest boxes were wrong size.

Here's a fixed file with your own palette.

Arne
Feb 20, 2004, 08:31 AM
Exactly, the breadth of the file was wrong. So Civ3 couldn't read it correctly.

Der PH
Feb 20, 2004, 08:48 AM
This sounds logical.
Thanx a lot everybody.