![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
|
Thread Tools | Display Modes |
|
![]() |
#1 | |
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]() Quote:
![]() So, now looking beyond mere data, look at my test code again and you will see that it writes to the same file multiple times in non-sequential order. Is that (logically) what you were trying to do? Yes, it is. Heck, I didn't even need to run a specific test - all one needs to do is look at the "fuller" Randomised events.cfg file to see the same condition in action (it does exactly what you are trying to do, so is even further evidence that your problem must be user - so I'm not sure what further evidence I would need in order for it to be considered "sufficient"? Ironically, my evidence is much greater than your simple and repetitive data test). So...why then would my code work and yours not? Look at my sample again and compare to yours. You will notice a very fundamental difference. Why? Because I FOLLOWED THE INSTRUCTIONS IN THE FILE HEADER! And through looking at logic rather than mere data, it took me about 1 second to see the problem with your code and 1 second to fix it... Code:
[data\Cfg\Basic.cfg] <snip> MEDALS_CREW|SunkInPatrolGerman=60000; TONNAGE, GC TORPEDO_TYPE5|PrototypeYear=1943 [data\Cfg\Commands_en.cfg] Cmd313|Key0=0x0 [0:data\Cfg\Basic.cfg] SUBMARINE_AMMO2|ForeTube10=2 ;T2 [data\Cfg\Sim.cfg] Visual|Detection time=1 ;[s] ;was 0.5 Code:
;*Prefix each repeated section name with #: to ensure that the name is unique. ![]() |
|
![]() |
![]() |
![]() |
#2 | |||||||||
Weps
![]() Join Date: Jan 2007
Location: Control Room
Posts: 355
Downloads: 8
Uploads: 0
|
![]() Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
To quote more completely from the comments in the file: Quote:
And yes, I see the little asterisk at the end of the line and at the beginning of the instruction about using prefixes. That does not make it clear that use of the term "section name" in the instruction refers to Name of the file including the full path from the "data\" level rather than SectionName, because a user could just as well conclude that you are referring to repeated reference to a section within a file. And yes, I understand how the use of file names in square brackets divides the Static settings.cfg into parts that one could call "sections", and that therefore one could say that the file names become "section names"[1], just as SectionNames [2] are section names[3], except that filenames that become "section names" are not SectionNames because they are section names in a different type of file. One could say that, but you don't actually say that anywhere do you? And you know what? That's just shoddy use of terminology. Its the sort of thing that leads to people not understanding what you intend. Its the sort of thing that a proper documentation review would catch and send back for a rewrite. It's a common practice in good user documentation to avoid using the same term in multiple ways, or using two very similar terms with widely variant meanings, and when one is doing something that could be at all ambiguous to provide very clear explanations. Quote:
So put it down to user error if you like. Now that we know what is going on I can confidently say that where I worked before comfortably retiring from the software industry in my 40s, we'd file it under "product defect". We'd also probably send the prefixing requirement back for a redesign. Neither of these would reflect very badly in the performance review of a junior programmer, but treating users (dumb or otherwise) the way you do would get you one warning before costing you your job. I really like SH3 Commander. It is generally a very useful utility, and reasonably stable. I use version 2.7 a lot, and will soon upgrade to version 3.x. I am truly greatful that you spent the time and effort to create and upgrade it. If 2.7 has a weakness, it is in its user interface. Sort of like its programmer. Grow some skin. -------------------------------------------------------------------- [1]"Section names" = the things referred to in the asterisked instruction about using numeric prefixes - the names of sections in the Static settings.cfg file. These names will have as values the pathnames of the SH3 configuration files you wish to modify by using Static settings.cfg. A "Section name"[1] is a section name[3] but not a SectionName[2] [2]SectionNames = syntax element of a command in the Static settings.cfg file. This element specifies the section name[3] in the sh3 configuration file which you wish to modify. [3]Section name = (used without quotation marks or colour), refers generically to the name of a section in a file, or more particularly to the name appearing in square brackets at the start of a section of a file which is composed of sections delimited by section names[3] appearing in square brackets at the beginning of the section. Last edited by RoaldLarsen; 02-23-09 at 05:45 AM. |
|||||||||
![]() |
![]() |
![]() |
#3 |
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]()
Wow, your comments really highlight how little you know about file structures...and about my professional history. It's starting to get embarrassing. Still, very humourous to read for me and my colleagues, so carry on.
![]() BTW, I'm really surprised based on you saying that you worked in the software industry that you don't understand basic ini file structures and syntax. Ironically, for at least according to you, you should have understood the instructions easier than anyone, but why have others (not in the software industry) had little to no problems getting it to work while you have? Maybe in this case you are the weakness? Anyway, try to justify it however you like, but simply, your problem was a USER error. Just "grow some skin" and take responsibility for it instead of trying to blame everything else. ![]() Issue closed (as your increased personal attacks suggest that you are running out of mature arguments to justify your mistakes). |
![]() |
![]() |
![]() |
#4 | |
Hellas
![]() |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
Tags |
sh3 commander |
|
|