Author Topic: Gamex86 Question  (Read 105 times)

0 Members and 1 Guest are viewing this topic.

spamclark15

  • id Enthusiast
  • Jr. Member
  • **
  • Posts: 95
  • Karma: +10/-3
  • A missile-launching skyscraper with goat legs.
    • View Profile
Gamex86 Question
« on: August 25, 2017, 12:59:41 AM »
I'm wondering where in the vanilla DOOM 3 source is doom3.exe set to look for gamex86 by name? Searching through the solution, I've found nothing.

grml4d

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +3/-3
  • Doom Newbie
    • View Profile
Re: Gamex86 Question
« Reply #1 on: August 25, 2017, 06:25:35 AM »
there is one in Anim_Blend.cpp of doom3 and roe...
i think you mean , the point where the executable search the mod-dll to load...
look in the DoomDLL files... [ i tested to compile with msvisual 2010 ...but that fails on this one...]

eXistence

  • Newbie
  • *
  • Posts: 22
  • Karma: +10/-0
  • Doom Newbie
    • View Profile

spamclark15

  • id Enthusiast
  • Jr. Member
  • **
  • Posts: 95
  • Karma: +10/-3
  • A missile-launching skyscraper with goat legs.
    • View Profile
Re: Gamex86 Question
« Reply #3 on: August 25, 2017, 07:23:36 AM »
Thanks. Where does it get "gamex86" from?

Phrozo

  • Mr. Phrozo
  • Jr. Member
  • **
  • Posts: 89
  • Karma: +15/-1
  • :3
    • View Profile
    • Mod Page
Re: Gamex86 Question
« Reply #4 on: August 26, 2017, 11:47:09 AM »
Because the DLL is the game's logic and it is compiled in 32-bit x86 assembly.

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 851
  • Karma: +41/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Gamex86 Question
« Reply #5 on: August 26, 2017, 02:13:04 PM »
Thanks. Where does it get "gamex86" from?
In the doom.sln that MS C++ uses to compile, it's told to name the file "$(projectname)", which uses the name of "game".  The "x86" comes from the type of compiling.

So, in essence, it's called "gamex86.whatever" because that's the default for most compilers.  :D  (well, using project name appended with compile type would be I guess)

grml4d

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +3/-3
  • Doom Newbie
    • View Profile
Re: Gamex86 Question
« Reply #6 on: August 26, 2017, 02:22:35 PM »
sorry to "smite" Phrozo ...the compilation is c[++]...

eXistence answered the question ... the word gamex86 is made with the word game contained in "%s" that is previously defined in "const char *baseName"  , game being injected in *baseName in a previous/other file ; x86 comes from a test that injects answer in  CPUSTRING ...

that is weird ...i prefer assembly because that uses directly some instructions the cpu can understand...with c...the cpu loose a lot of energy...i was hoping efi bios would make possible to program ....but like dos/win3.1...with a pc ; except paint and write plus a calculator you buy nothing .... they are "clever" at intel...

spamclark15

  • id Enthusiast
  • Jr. Member
  • **
  • Posts: 95
  • Karma: +10/-3
  • A missile-launching skyscraper with goat legs.
    • View Profile
Re: Gamex86 Question
« Reply #7 on: August 26, 2017, 10:34:56 PM »
Thanks guys, your help allowed me to figure out how to change it.
« Last Edit: August 26, 2017, 11:57:32 PM by spamclark15 »

Phrozo

  • Mr. Phrozo
  • Jr. Member
  • **
  • Posts: 89
  • Karma: +15/-1
  • :3
    • View Profile
    • Mod Page
Re: Gamex86 Question
« Reply #8 on: August 27, 2017, 12:53:19 AM »
sorry to "smite" Phrozo ...the compilation is c[++]...

eXistence answered the question ... the word gamex86 is made with the word game contained in "%s" that is previously defined in "const char *baseName"  , game being injected in *baseName in a previous/other file ; x86 comes from a test that injects answer in  CPUSTRING ...

that is weird ...i prefer assembly because that uses directly some instructions the cpu can understand...with c...the cpu loose a lot of energy...i was hoping efi bios would make possible to program ....but like dos/win3.1...with a pc ; except paint and write plus a calculator you buy nothing .... they are "clever" at intel...

Sorry that my reply was overly simplistic and a bit ignorant about the naming mechanism, however, I know that the source is in C++. I've compiled the Doom 3 source code many times before. Machine instructions are the assembled result ( what I meant to say ) , unless I'm mistaken.
« Last Edit: August 27, 2017, 01:00:23 AM by Phrozo »