 |
|  |
 |
|
Mark_Everson
|
 |
Canton, MI
Jan 1970 time: 00:25
|
|
quote: Originally posted by vovansim
Another bug that appears in demo 7.2.1, which I think wasn't there in demo 7.1, but I am not sure about demo 7.2.0, is when you select the Carthago delenda est scenario, it says image not found twice, and then whatever you do with the window, it prints out a bunch of debug information in the command prompt. Maybe find which images are missing, and put them there? Or at least turn off the debug switch to make the rest of the game a little faster? |
Hi Vovan, you must be missing some images, because I don't have that problem. Please ID what the images are, and look in the bridge zip I sent yesterday to see if they are there and you just didn't get them in the right place. I can send you the images you need, or the whole package of images again if necessary.
|
|
|  |
 |
|
vovan
|
|
quote: Originally posted by Mark_Everson
Hi Vovan, you must be missing some images, because I don't have that problem. Please ID what the images are, and look in the bridge zip I sent yesterday to see if they are there and you just didn't get them in the right place. I can send you the images you need, or the whole package of images again if necessary. |
Well, since that doesn't happen with any other scenarios, I assume the problem must be with the two scenario-specific images. hannibal.gif, and scipio.gif, which are mentioned in the xml file for the scenario. But they are there. In the same folder as the xml file. And their extension is lower case, and all as required. I can't imagine why the game cannot find them. It is the only scenario that has scenario-specific images though, so maybe they are not loaded correctly, or their path is not correctly stored? Then again, you say you don't have that problem... That is odd. I think I will investigate if / when I have time.
Meanwhile, I am wondering: does anybody else have that problem?
|
|
|  |
 |
|
vovan
|
|
Well, it might be the microsoft version that is causing the problem, but I am sure there are other people out there who tried to play the game with it, and they probably would have complained.
Now, the fact that you got an error message when trying to update it, is what bothers me. It might mean that there is some corruption there. Which could lead to all kinds of strange behavior in the game. Try to reinstall it and see if that does any good.
|
|
|  |
 |
|
LFS
|
|
quote: Hi Vovan, you must be missing some images, because I don't have that problem. Please ID what the images are, and look in the bridge zip I sent yesterday to see if they are there and you just didn't get them in the right place. I can send you the images you need, or the whole package of images again if necessary. |
I have that problem , I had that problem before as well.
quote: I think its the microsoft version of JVM and it has issues |
Question: what version of jave are we targeting, microsoft is 1.14, and won't handle swing on it's own, or a load of other good stuff.
I'm developing with suns 1.4 .
|
|
|  |
 |
|
LDiCesare
|
|
La Ferté sous Jouarre France
Jan 2001 time: 05:25
|
|
quote: Another bug that appears in demo 7.2.1, which I think wasn't there in demo 7.1, but I am not sure about demo 7.2.0, is when you select the Carthago delenda est scenario, it says image not found twice, and then whatever you do with the window, it prints out a bunch of debug information in the command prompt. Maybe find which images are missing, and put them there? Or at least turn off the debug switch to make the rest of the game a little faster? |
Yes, the bug is somewhere. I added the message to see what image was missing. An image "services" is missing, and it causes lots of overlay=null messages to be printed (not by me this time). Is that services image in the resources (or scenario) folder, or only on Mark's computer?
|
|
|  |
 |
|
LDiCesare
|
|
La Ferté sous Jouarre France
Jan 2001 time: 05:25
|
|
The services stuff happens because of a Feature object (in game/events/features). I don't know what it is used for nor where it comes from, which is why I limited myself to the trace. I think the Feature is called service too (but it is named after the image is attached to it).
I think features are the things like the horse in Dawn.
I can't see why there would be one in Delenda unless the map showed something wrong in it.
The parser somehow calls that but I cannot figure what file it reads that info from. delenda probably.
May be linked to MapFile.setEconomicSiteFeature? It has a f.setImage(sectorName) which smells like it could be the cause of the problem. It is a bit late for me to debug. Mark, do you think it could be that?
|
|
|  |
 |
|
vovan
|
|
quote: Originally posted by LDiCesare May be linked to MapFile.setEconomicSiteFeature? It has a f.setImage(sectorName) which smells like it could be the cause of the problem. It is a bit late for me to debug. Mark, do you think it could be that? |
It certainly does smell funky, but I don't think it is THE source of the problem. I put a debug statement in that method, and I saw that it tried opening the following files:
Reading scenario Carthago delenda est (delenda)
Setting economic site feature to: gold mine
Setting economic site feature to: services
Trying to open image: services
Image not found : services for feature null
Setting economic site feature to: cloth
Setting economic site feature to: tin mine
Setting economic site feature to: cloth
Setting economic site feature to: tin mine
Setting economic site feature to: gold mine
Setting economic site feature to: services
Trying to open image: services
Image not found : services for feature null
As you can see, it can find all the images for gold mine, cloth, and such. The only thing that causes poblems is services. We are in the middle of tracking two bugs down right now, though. So I am wondering, Mark, do you want me to investigate the TF popup menu bug further, or keep tracking this one?
|
|
|  |
 |
|
vovan
|
|
Mark, I have dug further into the thing, and here is what I found:
You know, how the resources are represented in the xml file with one-letter codes? So, for instance G stands for gold, etc.. Well, S translates into services. And the code that translates it that way is SectorInfo.getSectorNameFromAbbreviation.
Also, I looked at the list of file that the game knows of, and the only resource that starts with an S is salt mines. So, maybe that's what it is supposed to mean? Salt mines instead of services?
EDIT: typos
Last edited by vovan on 13-01-2003 at 04:51
|
|
|  |
 |
|
Mark_Everson
|
 |
Canton, MI
Jan 1970 time: 00:25
|
|
quote: Originally posted by vovansim
Mark, I have dug further into the thing, and here is what I found:
Also, I looked aty the list of file that the game knows of, and the only resource that starts with and S is aslt mines. So, maybe that's what it is supposed to mean? Salt mines instead of services? |
Good work Vovan, a kludge has come back to haunt me. Or at least you. I thought I could just use the first letters and there would be no conflict. But there is the obvious conflict of Salt, which is what its supposed to be, and Services. I will put a band-aid on it for now. Eventually we need to set explicitly which characters to use for which economic good. That is already on my list of things to do.
I wonder why I don't see the problem???
Anyway a fix is trivial, and I'll send it soon, or failing that tomorrow.
Thanks again!
-Mark
|
|
|  |
 |
|
vovan
|
|
I am not sure this would be the place to say this, but any way:
Since we are going to have a certain set of relations and attitudes, and such nice things between different nations, maybe it would make sense to start thinking about how we are going to incorporate that stuff in the XML files? After all, if we are creating a sccenario, we might want to have some civs know about each other's existance, and maybe have certain attitudes towqards each other, and maybe even some treates already set up? That would be especially useful for the tutorial scenarios introducing the concept to new players, but would add nice functionality for other scenarios as well. Is that something we want to consider, or are we going to have it the way it is in other games - all the civs start out without "knowing" about each other's existance?
|
|
|  |
 |
|
LDiCesare
|
|
La Ferté sous Jouarre France
Jan 2001 time: 05:25
|
|
Inserting yourself in the xml files is ridiculously easy. Gary used reflexion to parse the xml files, so you just need to implement one interface for the top level objects that can appear in the xml, then everything is automatic, nothing to code.
You can look for examples by grepping XML in the source code. I'll send you some explanations if needed, but don't worry about it. The amount of code needed to integrate to the parser takes around 10 minutes to do. Just make sure you have methods with understandable names respecting a setXXX/getXXX syntax for those things you will want to show up in the xml.
|
|
|  |
 |
|
vovan
|
|
Well, I realise there is probably a more or less easy way to do it. And at the moment it is really not needed yet. It's just that I was thinking that since for every object there are essentially several ways to encode it in XML, maybe there is some format you (as in people who have coded the xml data package) would like to follow. In other words, the format could be like this:
code:
<civilization>
<reputation>
<trustworthiness>1</trustworthiness>
<competence>2</competence>
<tyranny>0</tyranny>
<aggressiveness>-1</aggressiveness>
</reputation>
</civilization>
or like this:
code:
<civilization>
<reputation
trustworthiness = 1
competence = 2
tyranny = 0
aggressiveness = -1
/ >
</civilization>
It's really no big deal, I suppose, but it would be nice if all of the objects are stored in the same format. So, I was just thinking that maybe it would be a good idea to just think of the xml schema that we'll use for diplomatic data, as opposed to the coding part, which is more far off for now.
|
|
|  |
 |
|
LDiCesare
|
|
La Ferté sous Jouarre France
Jan 2001 time: 05:25
|
|
Mark just answered about the format.
quote: So, I was just thinking that maybe it would be a good idea to just think of the xml schema that we'll use for diplomatic data, as opposed to the coding part, which is more far off for now. |
The xml reflects exactly what is in the code. Thinking about it first is a good idea as it will also provide you with the interfaces (api) of the (public) classes you will manipulate.
|
|
|  |
 |
|
Framnk
|
|
Hi all -
Mark mentioned this thread to me as a place to get started by looking at some Clash bugs. Is there a list of outstanding bugs right now in a common place, or anything critical that I should look into to start out with?
- Framnk
|
|
|  |
 |
|  |
 |
|
Framnk
|
|
All:
Was looking into this one a little bit:
-165 (Mark) I would like the game to come up maximized by default. It comes up slightly smaller than maximized, which means I can’t see all the detail frame. [med D7.3]
After finding nothing very helpful in the JDK documentation I did a quick search and came up with the following thread: Maximizing a JFrame at Start-up
In a nutshell, you can't do it, at least as of the JDK version I am using which is 1.3.1. The thread proposes two solutions.
1) "Simulate" the maximizing of the JFrame by setting it's dimensions to the largest screen dimensions supported. The drawback here is that the state of the maximize button will not correctly indicate that the Frame is maximized.
2) Use JNI to interface with Win32 (or other native API) to cause the maximization to occur at startup.
As I am kind of new here and I wasn't sure of your design philosophies, I didn't want to start diving in and writing JNI calls to Win32, as I'm assuming that you are trying to keep Clash as platform neutral as possible.
Let me know what you guys think should be the best route (if any) here. My vote is just take the Frame dimensions up to "almost maximized" and make an adjustment or two to the detail window so everything comes up clean and visible.
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:25. Apolyton Time is 00:25. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|