Error setup file gameinfo txt doesn t exist in subdirectory hl2

The following is a list of errors and problems that can occur while using Vtex.

The following is a list of errors and problems that can occur while using Vtex.

When listing a new error here, please follow the established format.

Contents

  • 1 Local Steam Service is not running
  • 2 Problem figuring out outputdir
  • 3 «Unable to find gameinfo.txt»
  • 4 Setup file gameinfo.txt doesn’t exist
  • 5 TGA is bogus
  • 6 «Warning: falling back to auto detection of vconfig» (Windows Vista)
  • 7 See also

Local Steam Service is not running

Vtex will give the following error:

SteamStartup() failed: SteamStartup(0xf,0x0012F0E4) failed with error 108: The local Steam Service is not running

Steam must run while Vtex is run. Start Steam to fix this.

Problem figuring out outputdir

Vtex will give the following error:

Problem figuring out outputdir for <path>

As a first step, check that the texture to convert is really in the sourcesdk_contentgamedirmaterialsrc folder, where gamedir is the game folder (cstrike/dod/hl2/hl2mp).

If the texture is in the correct folder, the error might instead be caused by a complication with the environment variables. Primarily, this should be able to be eliminated by using VConfig and ensuring the selected mod has been run at least once. However, there are cases where this doesn’t solve the problem.

One solution is to remove the instance of the VProject Environment variable. In Windows XP this can be accomplished by the following:

  1. Right-click on My computer and click on Properties.
  2. Select the Advanced tab.
  3. Click on Environment Variables near the bottom of the window.
  4. In the System variables section scroll down and highlight the line VProject.
  5. Click the Delete button.
  6. Click OK twice to exit.

However, this solution will create the Unable to find gameinfo.txt error instead. To do: Delete this non-functioning solution alternative?

Alternative Solution

vtex.exe cannot understand spaces in the input file. One solution is to create a folder directly on the C:/ drive with the same name as the original one the vtex shortcut was pointing at. For example, create C:/tf instead of C:Program FilesSteamsteamapps<account_name>team fortress 2tf. Update the vtex.exe shortcut to point to this new folder. In this folder, put the gameinfo.txt from the original folder, as well as an empty materialsrc and materials folder. Place your file to be converted in the new materialsrc folder. Now drag-and-drop the file onto the vtex shortcut, and the output will be in the new materials folder.

«Unable to find gameinfo.txt»

Vtex will give the following error and instructions:

Unable to find gameinfo.txt. Solutions:

1. Read http://www.valve-erc.com/srcsdk/faq.html#NoGameDir
2. Run vconfig to specify which game you're working on.
3. Add -game <path> on the command line where <path> is the directory that gameinfo.txt is in.

This error will occur after VProject has been removed using the steps above.

Open Source SDK and change the Current Game.

Note.png Note: The link at step 1 won’t provide a solution. (The page is really old.)

Setup file gameinfo.txt doesn’t exist

The Nov 7th, 2007 SDK release includes Orange Box with TF2 and trying to use vtex in this new SDK update to create a vtf file for Team Fortress 2 results in the following error message:

"Setup file 'gameinfo.txt' doesn't exist in subdirectory 'C:Program FilesSteamsteamappsplayer namesourcesdkbinorangeboxbinvconfig'. check your -game parameter or VCONFIG setting.".

Assuming that this is the same error as «Unable to find gameinfo.txt» above, then trying to run vconfig.exe results in this error:

"This application has failed to start because Steam.dll was not found. Re-installing the application may fix this problem."

Solution:

  1. Create a shortcut to vtex.exe which is located in «C:Program FilesSteamsteamappsplayer_namesourcesdkbinorangeboxbinvtex.exe» and select Properties.
  2. At the end of the Target text add -game «C:Program FilesSteamsteamappsplayer_nameteam fortress 2tf» -nop4

Valve intends to fix the problem with requirement of a -nop4 argument to be added to the target.

TGA is bogus

Vtex will give the following error:

TGA <path> is bogus!

The texture image you are trying to convert is not recognized as a valid targa (.tga) file. Make sure that it is, and that it is either 24 bit/pixel or 32 bit/pixel. (16 bit/pixel is not recognized.)

«Warning: falling back to auto detection of vconfig» (Windows Vista)

Vtex will give the following error:

To do: Please provide an exact quote of the error.

Make a shortcut for vtex.exe and add -game [path to game directory]

Example: -game c:/steam/steamapps/sourcemods/Awakening

If there are spaces in any of the folders in your path use »

Example: -game «c:/program files/steam/steamapps/sourcemods/insurgency»

See also

  • Vtex

Форум Dota 2

  1. Привет всем)
    У меня возникла проблема при запуске Доты 2, ошибка setup file gameinfo.txt doesn’t exist in subdirectory hl2.
    Что это за ошибка и как её исправить? Кто может подскажите!
    1-Переустанавливать не получилась!
    2-Проверка Кеша тоже не помогла!
    3-В яндексе тоже не нашёл!
    4-ПОМОГИТЕ!!!!

  2. Проверь кеш, Если не докачает файлы вставь внутрь твоего файла в деректорию это:

    «GameInfo»
    {
    game «DOTA 2»
    gamelogo 1
    type multiplayer_only
    nomodels 1
    nohimodel 1
    nocrosshair 0
    GameData «dota.fgd»
    SupportsDX8 0

    FileSystem
    {
    SteamAppId 816 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
    ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materialsdebug, materialseditor, etc.

    //
    // The code that loads this file automatically does a few things here:
    //
    // 1. For each «Game» search path, it adds a «GameBin» path, in <dir>bin
    // 2. For each «Game» search path, it adds another «Game» path in front of it with _<langage> at the end.
    // For example: c:hl2cstrike on a french machine would get a c:hl2cstrike_french path added to it.
    // 3. For the first «Game» search path, it adds a search path called «MOD».
    // 4. For the first «Game» search path, it adds a search path called «DEFAULT_WRITE_PATH».
    //

    //
    // Search paths are relative to the base directory, which is where hl2.exe is found.
    //
    // |gameinfo_path| points at the directory where gameinfo.txt is.
    // We always want to mount that directory relative to gameinfo.txt, so
    // people can mount stuff in c:mymod, and the main game resources are in
    // someplace like c:program filesvalvesteamsteamapps<username>half-life 2.
    //
    SearchPaths
    {
    Game |gameinfo_path|.
    Game platform
    }
    }
    }

  3. Всё сделал как ты сказал,но тока не вышло все ровно он это выдаёт!
    Setup file gameinfo.txt doesn’t exist in subdirectory hl2
    Check your-game parameter or VCONFIG setting.
    Вот всё ошибка!
    И еще Дота 2 Тест запускается!

  4. такая же ошибка :(

  5. http://vk.com/vsiraem_mid заходим и подписываемся (если не педики )

  6. стим — настройки — бета тестирование — выбири стим бета апдейт, может поможет

  7. В ксс такая проблема сейчас была сразу начал искать в яндекса и наткнулся на ваш сайт…
    Скорее всего это у меня случилось из-за того, что я папку cstrike из старой контры перекинул т.к. у меня там все моды и карт на 8гб. Так вот проверил кеш и мне сейчас докачивает 128 файлов… Скорее всего сейчас смогу зайти.

Everytime I launch TF2, I get the following message: Setup file ‘gameinfo.txt’ doesn’t exist in subdirectory ‘hl2’. Check your -game parameter or VCONFIG setting.
Things I’ve tried
-Fresh reinstall (twice)
-Fresh OS reinstall
-Update drivers etc.
-Find ‘gameinfo.txt’ in my tf folder, delete it, verify game cache, and launch again
-verify game cache
-restart PC
-wait for a while
-run as admin
Help would be appreciated!

Everytime I launch TF2, I get the following message: Setup file ‘gameinfo.txt’ doesn’t exist in subdirectory ‘hl2’. Check your -game parameter or VCONFIG setting.
Things I’ve tried
-Fresh reinstall (twice)
-Fresh OS reinstall
-Update drivers etc.
-Find ‘gameinfo.txt’ in my tf folder, delete it, verify game cache, and launch again
-verify game cache
-restart PC
-wait for a while
-run as admin
Help would be appreciated!

Have you tried replacing the gameinfo.txt with a new one? Here’s a link. Just place that in your tf folder and see if it works.

Have you tried replacing the gameinfo.txt with a new one? [url=https://www.dropbox.com/s/heyy925duvgapql/gameinfo.txt?dl=0]Here’s a link[/url]. Just place that in your tf folder and see if it works.

I’ve had this issue a few times in the last couple days. It was being caused by a bad desktop shortcut for tf2. Not sure if that’s the issue here. I fixed it by creating a new shortcut for tf2.

I’ve had this issue a few times in the last couple days. It was being caused by a bad desktop shortcut for tf2. Not sure if that’s the issue here. I fixed it by creating a new shortcut for tf2.

Just tried it, no dice, thanks though

CarnHave you tried replacing the gameinfo.txt with a new one? Here’s a link. Just place that in your tf folder and see if it works.

Just tried it, no dice, thanks though
[quote=Carn]Have you tried replacing the gameinfo.txt with a new one? [url=https://www.dropbox.com/s/heyy925duvgapql/gameinfo.txt?dl=0]Here’s a link[/url]. Just place that in your tf folder and see if it works.[/quote]

check the file itself? I remember a while back i had a fucky problem with it and for some reason the gameinfo was completely wrong, it was pointing the filesystem to some appid that wasn’t 440 (tf2’s). You can probably use the one you dl’d to crosscheck.

check the file itself? I remember a while back i had a fucky problem with it and for some reason the gameinfo was completely wrong, it was pointing the filesystem to some appid that wasn’t 440 (tf2’s). You can probably use the one you dl’d to crosscheck.

Crosschecked and looked it over. Issue still persists. Appreciate the help though

BuildBruhcheck the file itself? I remember a while back i had a fucky problem with it and for some reason the gameinfo was completely wrong, it was pointing the filesystem to some appid that wasn’t 440 (tf2’s). You can probably use the one you dl’d to crosscheck.

Crosschecked and looked it over. Issue still persists. Appreciate the help though
[quote=BuildBruh]check the file itself? I remember a while back i had a fucky problem with it and for some reason the gameinfo was completely wrong, it was pointing the filesystem to some appid that wasn’t 440 (tf2’s). You can probably use the one you dl’d to crosscheck.[/quote]

Did you ever find a solution?
I have replaced the gameinfo.txt from here, verified it at least it has 440 in the right place
I also replaced my desktop icon from within steam.
Any help please

Did you ever find a solution?
I have replaced the gameinfo.txt from here, verified it at least it has 440 in the right place
I also replaced my desktop icon from within steam.
Any help please

I have the same problem. Please help :(

I have the same problem. Please help :(

I have something similar to this. when i launch it through steam, it crashes on the startup loading screen. If i try to launch it through the tf2 folder, the error message opens. Send Help.

I have something similar to this. when i launch it through steam, it crashes on the startup loading screen. If i try to launch it through the tf2 folder, the error message opens. Send Help.

sorry for necroing

i’ve been battling this for the past week, nothing worked, did everything b0wl did, added him to see if he fixed it and said he just got a new pc

i got a match tomorrow and i can’t play anywhere else, please help

this is the error i get when i launch it normally

View post on imgur.com

this is the error i get when i launch it through hl2.exe (as administrator awell)

View post on imgur.com

edit
fixed it, thanks wiethoofd and prsn for helping out!

sorry for necroing

i’ve been battling this for the past week, nothing worked, did everything b0wl did, added him to see if he fixed it and said he just got a new pc

i got a match tomorrow and i can’t play anywhere else, please help

this is the error i get when i launch it normally
[img]https://i.imgur.com/Jhr5ezO.png[/img]

this is the error i get when i launch it through hl2.exe (as administrator awell)
[img]https://i.imgur.com/HGvUw63.png[/img]

edit
fixed it, thanks wiethoofd and prsn for helping out!

So, does anyone know an actual solution for this? Checking the app id (which is 440) and replacing gameinfo.txt didn’t work.

So, does anyone know an actual solution for this? Checking the app id (which is 440) and replacing gameinfo.txt didn’t work.

JackyLegssorry for necroing

i’ve been battling this for the past week, nothing worked, did everything b0wl did, added him to see if he fixed it and said he just got a new pc

i got a match tomorrow and i can’t play anywhere else, please help

this is the error i get when i launch it normally
https://i.imgur.com/Jhr5ezO.png

this is the error i get when i launch it through hl2.exe (as administrator awell)
https://i.imgur.com/HGvUw63.png

edit
fixed it, thanks wiethoofd and prsn for helping out!

how did you fix it? i’m literally trying anything but still no results.
Thank you

[quote=JackyLegs]sorry for necroing

i’ve been battling this for the past week, nothing worked, did everything b0wl did, added him to see if he fixed it and said he just got a new pc

i got a match tomorrow and i can’t play anywhere else, please help

this is the error i get when i launch it normally
[img]https://i.imgur.com/Jhr5ezO.png[/img]

this is the error i get when i launch it through hl2.exe (as administrator awell)
[img]https://i.imgur.com/HGvUw63.png[/img]

edit
fixed it, thanks wiethoofd and prsn for helping out![/quote]

how did you fix it? i’m literally trying anything but still no results.
Thank you

I’ve tried a couple of methods with wiethoofd and prsn which fixed it temporarily, I’ve taken all my launch options out and put -autoconfig in my launch options after restarting my pc, after a few tries it worked (try launching as administrator if it doesn’t work).

after a while it happened again, eventually, my pc died, my motherboard and graphics card were toast, had to replace them, after that it never happened again.

I’ve tried a couple of methods with wiethoofd and prsn which fixed it temporarily, I’ve taken all my launch options out and put -autoconfig in my launch options after restarting my pc, after a few tries it worked (try launching as administrator if it doesn’t work).

after a while it happened again, eventually, my pc died, my motherboard and graphics card were toast, had to replace them, after that it never happened again.

try puting the gameinfo.txt into the team fortress 2 folder then put in into the hl2 folder and run it???

try puting the gameinfo.txt into the team fortress 2 folder then put in into the hl2 folder and run it???

Please
sign in through STEAM
to post a comment.

Due to connection problems, I istalled Portal 2 and the Hammer Editor by moving my Steam folder from my old computer to my new one. When I tried to launch Hammer, I got the following error:
«Setup file ‘Gaminfo.txt’ doesn’t exist in subdirectory ‘c:programfilessteamsteamappscommonportal 2portal2’. Check your -game parameter or VCONFIG setting.»
I used the search function on this forum and I also checked Google but I couldn’t find any fitting answer. I was told that I maybe should reinstall Portal 2 but as I said that this is impossible at the moment. Is there another way to get Hammer working correctly?
Of course the data does exist in the right directory.

Then I have another question in case my Hammer Editor can be fixed or something; it’s about the pits outside the testchambers. How do I create these foggy areas? You know, very deadly, extremly deadly… *Cough* Is there an entity or a brush or something like that? I’d try several things, but it never worked. It would be nice, if you could help me.

This problem was solved by copying my Steam folder into another directory. Thanks to everybody who tried to help me here! ^^

Lpfreaky90@lpfreaky90

2,815 Posts

Soo much variables that can gone wrong:
1) Did you copy the whole steam folder?
If so: did you copy it from a 32-bits to a 64 bits computer?
64-bits computer install steam in c:/program files(x86)/steam/steamapps

c:programfiles seems strange to me too.
Where is your gameinfo.txt? is it in the steam/steammapps/common/portal 2/portal2?

Does your gameinfo.txt look like this?

Code: Select all
"GameInfo"
{
   game       "PORTAL 2"
   title       "PORTAL 2"
   GameData   "portal2.fgd"
   gamelogo    1

   SupportsDX8     0
   SupportsXbox360 1

   FileSystem
   {
      SteamAppId            620      // This will mount all the GCFs we need (240=CS:S, 220=HL2).
      ToolsAppId            211      // Tools will load this (ie: source SDK caches) to get things like materialsdebug, materialseditor, etc.

            //
      // The code that loads this file automatically does a few things here:
      //
      // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>bin
      // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
      //    For example: c:hl2cstrike on a french machine would get a c:hl2cstrike_french path added to it.
      // 3. For the first "Game" search path, it adds a search path called "MOD".
      // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
      //

      //
      // Search paths are relative to the base directory, which is where hl2.exe is found.
      //
      // |gameinfo_path| points at the directory where gameinfo.txt is.
      // We always want to mount that directory relative to gameinfo.txt, so
      // people can mount stuff in c:mymod, and the main game resources are in
      // someplace like c:program filesvalvesteamsteamappshalf-life 2.
      //

      SearchPaths
      {
         Game            |gameinfo_path|.
      }
   }
}

Just my few first thoughts, let us know if you tried some of this and/or if you have other information :)

The foggy area’s are created with a fog_controller; there are some pre-sets in global_ents.vmt, try and see which one fits the best?

Ace_StorM@ace_storm

73 PostsTopic Author

This looks very helpful.

lpfreaky90 wrote:

Soo much variables that can gone wrong:
1) Did you copy the whole steam folder?
If so: did you copy it from a 32-bits to a 64 bits computer?
64-bits computer install steam in c:/program files(x86)/steam/steamapps

Oh, I forgot to mention it. My old computer was a 32-bits computer, my new one is a 64-bits computer.

lpfreaky90 wrote:

Where is your gameinfo.txt? is it in the steam/steammapps/common/portal 2/portal2?

Yes, it is.

lpfreaky90 wrote:

Does your gameinfo.txt look like this?

Code: Select all
"GameInfo"
{
   game       "PORTAL 2"
   title       "PORTAL 2"
   GameData   "portal2.fgd"
   gamelogo    1

   SupportsDX8     0
   SupportsXbox360 1

   FileSystem
   {
      SteamAppId            620      // This will mount all the GCFs we need (240=CS:S, 220=HL2).
      ToolsAppId            211      // Tools will load this (ie: source SDK caches) to get things like materialsdebug, materialseditor, etc.

            //
      // The code that loads this file automatically does a few things here:
      //
      // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>bin
      // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
      //    For example: c:hl2cstrike on a french machine would get a c:hl2cstrike_french path added to it.
      // 3. For the first "Game" search path, it adds a search path called "MOD".
      // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
      //

      //
      // Search paths are relative to the base directory, which is where hl2.exe is found.
      //
      // |gameinfo_path| points at the directory where gameinfo.txt is.
      // We always want to mount that directory relative to gameinfo.txt, so
      // people can mount stuff in c:mymod, and the main game resources are in
      // someplace like c:program filesvalvesteamsteamappshalf-life 2.
      //

      SearchPaths
      {
         Game            |gameinfo_path|.
      }
   }
}

Just my few first thoughts, let us know if you tried some of this and/or if you have other information :)

Yes, it does. Maybe there is something different. I am going to test it later by pasting your text in the file. (Of course, I made a backup)

lpfreaky90 wrote:

The foggy area’s are created with a fog_controller; there are some pre-sets in global_ents.vmt, try and see which one fits the best?

Thanks. ;)

EDIT:
About the path: You are right. It’s not «c:programfiles […]», it is «c:program files […]»
Sorry about that.

MrLate@mrlate

162 Posts

Community Contributors

Have you launched Portal 2 with your new computer yet?

Ace_StorM@ace_storm

73 PostsTopic Author

p0rtalplayer@p0rtalplayer

296 Posts

Community Contributors

You confirmed you switched from 32-bit to 64-bit, but you didn’t mention where you moved the steam folder to. Make sure everything that steam uses (including the sdk files) is in /Program Files (x86)/ and not /Program Files/.

If that fails, I would recommend backing up just the things you know you need (VMF’s, prefabs, etc), and then completely reinstalling. Then put the files back in their corresponding folders once you know hammer is working right.

Hear the turret, for it is knell. It summons thee to heaven, or to hell.

Ace_StorM@ace_storm

73 PostsTopic Author

p0rtalplayer wrote:

(including the sdk files) is in /Program Files (x86)/ and not /Program Files/.

I installed Steam normally by downloading it. Then, I replaced the folder. That means, Steam is already in /Program Files (x86)/.

p0rtalplayer wrote:

If that fails, I would recommend backing up just the things you know you need (VMF’s, prefabs, etc), and then completely reinstalling. Then put the files back in their corresponding folders once you know hammer is working right.

I already reinstalled Hammer once.

Lpfreaky90@lpfreaky90

2,815 Posts

the problem is that the gameinfo.txt is from portal 2 ;) not from hammer :(

Ace_StorM@ace_storm

73 PostsTopic Author

I see. Is there anything else I can do or will I have to reinstall Portal 2?

EDIT:
Big, big edit. The thing about the program files gave me an idea. Make more- err, copying my whole Steam-folder into the normal program files. After doing that, I could launch Hammer normally.
Thanks for all the help, everybody. ;)

jeremy0118@jeremy0118

1 Post

Hi

watch my Tutorial 2013 of how to fix hammer errors like

— gameinfo.txt missing
— visual elements missing
— fps lagg

can be found here

http://www.youtube.com/watch?v=pJ2c674jrrc

Helped alot of people out allready:)

The errors are getting caused by the new steam update. sinds the new steam update got released, the games installation paths got changed, and Valve haven’t changed that in source sdk yet, so if you get the errors it simply means that the path you try to run Hammer from doesn’t exist.

Follow the simple steps in my tutorial of how to fix this, and you’re hammer will work perfectly =) :thumbup:

Like this post? Please share to your friends:
  • Error sprintf was not declared in this scope
  • Error setting value of context attribute
  • Error setting usbasp isp clock khazama
  • Error setting up user folders assetto corsa
  • Error spmhdb 238