[Help!] Gameplayobjects.con not updating/saving

Making or wanting help making your own asset? Check in here
Post Reply
OkitaMakoto
Retired PR Developer
Posts: 9368
Joined: 2006-05-25 20:57

[Help!] Gameplayobjects.con not updating/saving

Post by OkitaMakoto »

So, once again ANOTHER problem has arisen. I found the reason why new objects are not showing up. Turns out, they are no longer getting saved.

Well, they are getting saved into here: location #1
C:\Program Files\EA GAMES\Battlefield 2\mods\pr_edit_06\levels\Black_Hawk_Down\Editor\gameplayobjects.con

but NOT anywhere else. As in ALL the folders/playersizes in here: Location #2
C:\Program Files\EA GAMES\Battlefield 2\mods\pr_edit_06\levels\Black_Hawk_Down\GameModes

So, whats happening now, is that in the editor, it reads everything new that I have placed. Because, as far as I understand, it is reading from the First location. However, once I go in game, since it is NOT saving into location 2 (and, judging by its last modified date, it hasnt saved in location 2 since aug 12th give or take) NO new object spawners appear in my map. Even if I change an objectSpawners location, it does NOT change locations in game. It changes it in the editor, but thats it.

I have tried saving and ticking EVERY box to save, and no good. I deleted my whole Airport CP and remade it, still nothing. The Location 2 still reads the old Airport CP name and objects.

Whats wrong!?!?!?
Why is all this happening to me!?

If you need more info, please ask!

ps I cant just paste the editors gameplayobjects.con file into the other locations because it makes it crash. I have worked on this problem ALL day and havent gotten anywhere aside from finding out that its not saving. :'(

I renamed the old gameplay folder and saved again, hoping it would see that this folder was missing, and then make a new one using all the new objects and locations, but still, nothing. It just doesnt even DEAL with that folder anymore... how can I get it to care about this folder!!??

:'(

Okita
OkitaMakoto
Retired PR Developer
Posts: 9368
Joined: 2006-05-25 20:57

Post by OkitaMakoto »

So i have also recently discovered that my GameModes folder in my Black_Hawk_Down folder is read only. And no matter how many times I tell it otherwise, it stays that way... is that correct? Could this be whats causing the problem? Ughhhhh......
bearking19
Posts: 125
Joined: 2007-08-26 05:44

Post by bearking19 »

Yes you have to shift the files manually from the editor folder to the server zip folder which has the gamemodes. I think you only have to do this if you did not pack the map. Thats what i think.
Now this is not the end. It is not even the beginning of the end. But it is, perhaps, the end of the beginning.

Image
OkitaMakoto
Retired PR Developer
Posts: 9368
Joined: 2006-05-25 20:57

Post by OkitaMakoto »

i packed the map and it still doesnt work. and when i pace the editor's version in all the game modes folders, it crashes the map on load.

i mean, i COULD go though and only add in the vehicles I added in both the two places it places them in the text file, but that could become a terrible pain... ill look into it...

im just wondering what stopped them from updating during saves in the editor...
Ratface
Retired PR Developer
Posts: 962
Joined: 2011-04-21 18:57

Re: [Help!] Gameplayobjects.con not updating/saving

Post by Ratface »

NECRO BUMP!

Has anyone had any fixes for this? Having the exact same issue as Okita.

Thanks!
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [Help!] Gameplayobjects.con not updating/saving

Post by Rudd »

so ur gamemode folder is read only?
Image
Ratface
Retired PR Developer
Posts: 962
Joined: 2011-04-21 18:57

Re: [Help!] Gameplayobjects.con not updating/saving

Post by Ratface »

Yes, can't seem to change it either, access denied even as admin. Although I did just find a console command to change the folder's permissions by hand. Didn't know if there was any easier way to do this or if I'll have to resort to that. No big deal if that's the only way I suppose.

Edit: That being said, all folders are "Read Only", though I don't have any issues exporting models or placing static objects on maps. Those work just fine, just not anything that spawns (let's say a tank, for example).

EDITEDIT: So I whipped up a quick C# program that parses out all of the (In this case, 64 layer) objects from the map's GameplayObjects.con file and places them in a new file. Seems to work fine when I place it in the layer-specific GameModes folder. Definitely a short term fix but at least it works :P
Last edited by Ratface on 2015-10-08 01:33, edited 2 times in total.
Post Reply

Return to “PR:BF2 Community Modding”