OpenGen Questions & Bugs - Latest exe: 0.93.3.4.Test (13-Nov-2019)

Discussing the game, editor (Suite) and the related tools.
User avatar
lvjtn
General, VII. Upper Danubian Corps
General, VII. Upper Danubian Corps
Posts: 251
Joined: 2019-03-09 23:23, Saturday
Location: budapest / hungary
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by lvjtn » 2019-11-10 16:57, Sunday

LuisGuzman wrote:
2019-11-10 13:08, Sunday
Maybe I should rethink such solution :dunno
you still can use a dat file collection similar to the icons or the old pg2 dossier.shp, etc. :dunno
randowe wrote:
2019-11-10 13:53, Sunday
Is it possible to have no-read lines in the names.txt?
it seems it's not possible, though the idea is great! :yes

btw. i always tought the first 31 lines are the genreic names what opengen use for the nations not having leader names. but now i made a quick test filees with only 62 lines, and opengen doesn't use the first 31 lines for nation #10. is it a bug, or the role of the first 31 lines is something else?
»my real name is csaba (tʃɒbɒ)«
efiles:
Image Image Image Image Image

campaigns:
Image

Image

User avatar
LuisGuzman
General, Special Forces
General, Special Forces
Posts: 102
Joined: 2019-03-10 08:35, Sunday
Location: Spain
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by LuisGuzman » 2019-11-10 19:40, Sunday

lvjtn wrote:
2019-11-10 16:57, Sunday
randowe wrote:
2019-11-10 13:53, Sunday
Is it possible to have no-read lines in the names.txt?
...
So i want to ask if it is possible to divide the nations with no-read lines like in the other text files. Something like:

***1***Slovakia***********
***8***Germany***********
it seems it's not possible, though the idea is great! :yes
Currently the leader name is assigned when a leader is raised by this formula (inherit from Pg2):

Code: Select all

leader->id = unit->country*31+RollDice(0,30);
leader->name = text of the leader->id line of names.txt
That is: the first 31 entries are not used at all.

Names.txt is opened whenever a new leader is raised to load the line according the "leader->id" assigned and then is closed.
That "leader->id" is stored in the savegames, so when a savegame is reloaded, names.txt is opened again and the the "leader->name" is retrieved from the line pointed by the "leader->id" stored.
btw. i always thought the first 31 lines are the generic names what opengen use for the nations not having leader names. but now i made a quick test files with only 62 lines, and opengen doesn't use the first 31 lines for nation #10. is it a bug, or the role of the first 31 lines is something else?
Names.txt is the same than used by PG2 ... and first 31 entries was not used by PG2 either.

Once said this ...
To remove the unused 31 entries, names.txt should be converted to NamesEx.txt

To allow inserting comments at start of country's names entries in names.txt or namesEx.txt, by using starting tokens in lines to be skipped (like *** or whatever) I'd only need to tweak the code to figure the random leader->id inside the function in charge of reading the text file (names/namesEx).

The only drawback could be that leaders' names in existing savegames (xsav, xcsv, xeml) will load a different leader name if their efile's name/namesEx text file is modified to include commented (***) lines.
:howdy
Image  Visit my site to get my latest tools.
* Click Open General banner to get more info about the game
Image

User avatar
lvjtn
General, VII. Upper Danubian Corps
General, VII. Upper Danubian Corps
Posts: 251
Joined: 2019-03-09 23:23, Saturday
Location: budapest / hungary
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by lvjtn » 2019-11-10 21:22, Sunday

LuisGuzman wrote:
2019-11-10 19:40, Sunday
That is: the first 31 entries are not used at all.
:doh i lived 20 years in complete ignorance :beatup

anyway, the NamesEx.txt sounds interesting, separating the nations by a commented line would help a lot, i guess. as the savefiles are temporal, i don't see any real drawback :2cents
»my real name is csaba (tʃɒbɒ)«
efiles:
Image Image Image Image Image

campaigns:
Image

Image

User avatar
randowe
Second Lieutenant
Second Lieutenant
Posts: 266
Joined: 2019-09-20 19:02, Friday
Location: Brunswick, Germany

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by randowe » 2019-11-10 22:38, Sunday

lvjtn wrote:anyway, the NamesEx.txt sounds interesting, separating the nations by a commented line would help a lot, i guess. as the savefiles are temporal, i don't see any real drawback :2cents
I second that :cool

User avatar
mythos
Second Lieutenant
Second Lieutenant
Posts: 115
Joined: 2019-09-30 19:37, Monday
Location: near a faerie forest in a misty vale

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by mythos » 2019-11-11 13:27, Monday

LuisGuzman wrote:
2019-11-10 13:08, Sunday
mythos wrote:
2019-11-09 23:52, Saturday
Yes, i do see the Dossier (portrait and medals). I also see medals when inspecting a unit.
However, i don't see Leader portraits when inspecting a unit :fused
...
Still, i think it has something to do with the width of the files.
I assume that roundels and Leader portraits are loaded "in full" (i get an error message when inspecting a unit with LXF, that the size is too large), while Dossier portrait and both medals types are internally cut by the game to single pieces ?
Either way however, it seems that it is a hardware issue on my side.
Yes, this is a hardware issue :yep

[..]

I honestly didn't realize that D3D could impose a restriction on the size of textures, when the much older DirectDraw didn't make such restriction, and thus I concluded that it was much easier to load the whole file.
:huh Maybe I should rethink such solution :dunno
Do i understand correctly: the problem is simply that my video card is lacking OpenGL support ?
If not, could you please detail what else the card would need to "fix" the issue ?

Imho, considering that i am the only one having the issue and that it didn't occur earlier, the simplest thing would be that i get a new video card (i was aware that it is insufficient for gaming, since the computer was formerly an office setup (literally) - and i have trouble with other games which require OpenGL).
The short story is, i was lacking the funds for a high-end machine, however needed a "new" PC now, so i got myself a cheap system plus extra RAM from the friend of a friend, as well as a SATA HDD.
Investing in some kind of OpenGL video card is fine for me, since i need to do it anyway :yep


Edit:
Dunno if it helps, the current video card is: Intel Q45
Image

User avatar
LuisGuzman
General, Special Forces
General, Special Forces
Posts: 102
Joined: 2019-03-10 08:35, Sunday
Location: Spain
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by LuisGuzman » 2019-11-11 15:08, Monday

Support for OpenGL is not required to play OpenGen in a windows system, sdl2 would use D3D as default.

Can check this page: https://www.intel.com/content/www/us/en ... ivers.html
3D graphics features
  • ...
  • Full OpenGL* 1.3 ICD (Installable Client Driver)
  • Compatible with DirectX* 9.0, 8.x, and 7.x
  • Specific features of DirectX 9.0 are supported
  • ...
  • Texture Engine
  • Up to 2048x2048 texture size
  • All texture formats including 32-bit RGBA and 8-bit palette
  • Alpha and Luminance maps
  • Texture ColorKeying/ChromaKeying
Although it looks like you can use 4096x4096 textures, so it is possible that you have updated drivers for your Q45 :dunno

I also found this other report, which seems that the Intel(R) Q45/Q43 Express Chipset Driver Version 8.15.10.2413 can use textures up to 4096x4096
https://h30434.www3.hp.com/t5/Desktops- ... -p/6056216

Win version can also impose additional restrictions ... but I could not find any other report telling how to use bigger textures, sorry.
:howdy
Image  Visit my site to get my latest tools.
* Click Open General banner to get more info about the game
Image

User avatar
mythos
Second Lieutenant
Second Lieutenant
Posts: 115
Joined: 2019-09-30 19:37, Monday
Location: near a faerie forest in a misty vale

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.0 (15-Oct-2019)

Post by mythos » 2019-11-11 15:36, Monday

:eek :banana
Driver update indeed solved the issues. Crazy thing though: according to date, the drivers i had before were newer :fused :whatever

Thank you very much Luis :bow


Edit:
this also solved the trouble with some of the other games.
Image

User avatar
LuisGuzman
General, Special Forces
General, Special Forces
Posts: 102
Joined: 2019-03-10 08:35, Sunday
Location: Spain
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.3.Test (12-Nov-2019)

Post by LuisGuzman » 2019-11-12 18:39, Tuesday

:bullhorn OpenGenTest.exe 0.93.3.3.Test is available

Including:
  • Leaders' names are stored in the savegames.
  • Leader's names can be read from either names.txt or from namesEx.txt
  • namesEx.txt must not include the unused first dummy 31 entries.
  • Either names.txt or namesEx.txt and can include comment lines starting with token * (asterisk)
  • Optimized loading medals and photos (dossier and inspect) to load only the image/s needed.
  • optional og_forums.png was reported as missing, after closing the game. It won't complain anymore if not present, as it is needed only for testing.
:howdy
Image  Visit my site to get my latest tools.
* Click Open General banner to get more info about the game
Image

User avatar
lvjtn
General, VII. Upper Danubian Corps
General, VII. Upper Danubian Corps
Posts: 251
Joined: 2019-03-09 23:23, Saturday
Location: budapest / hungary
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.3.Test (12-Nov-2019)

Post by lvjtn » 2019-11-12 19:38, Tuesday

LuisGuzman wrote:
2019-11-12 18:39, Tuesday
  • Leaders' names are stored in the savegames.
  • Leader's names can be read from either names.txt or from namesEx.txt
  • namesEx.txt must not include the unused first dummy 31 entries.
thanks, Luis

unfortunately, something is not perfect with NamesEx, like either the first 31 lines would be still ignored or the commented lines wouldn't be ignored, in my test scenario (efile son), the texian unit picks up a name from the mexican roster, which is the next nation. the files are on their way to you
»my real name is csaba (tʃɒbɒ)«
efiles:
Image Image Image Image Image

campaigns:
Image

Image

User avatar
LuisGuzman
General, Special Forces
General, Special Forces
Posts: 102
Joined: 2019-03-10 08:35, Sunday
Location: Spain
Contact:

Re: OpenGen Questions & Bugs - Latest exe: 0.93.3.3.Test (12-Nov-2019)

Post by LuisGuzman » 2019-11-13 09:10, Wednesday

lvjtn wrote:
2019-11-12 19:38, Tuesday
unfortunately, something is not perfect with NamesEx, like either the first 31 lines would be still ignored or the commented lines wouldn't be ignored, in my test scenario (efile son), the texian unit picks up a name from the mexican roster, which is the next nation. the files are on their way to you
:doh

The line detecting if Names.txt or NamesEx.txt is loading was buggy and never detects NamesEx.txt

Can get 0.93.3.4.Test from same link fixing it!
:howdy
Image  Visit my site to get my latest tools.
* Click Open General banner to get more info about the game
Image

Post Reply