x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to properly use config INIs for server settings?

Hi, so I made several UPROPERTY(config) variables in my game mode that set a timer for different game states (similar to the Shooter game provided). I have several questions on how to take advantage of configurables:

1) They don't show up in the DefaultGame.ini automatically, so I go ahead and write them in. Is there a better way to set them up after you've added them to the game mode class (or any class with config=game)?

2) When the editor is already running, changing DefaultGame.ini doesn't have any effect, presumably because the values are loaded from Saved/Config Game.ini now? But the WindowsNoEditor/Game.ini is empty, so I have to copy from the Clean configs, and then change what I copied?

3) So what I was hoping to do with the INIs is: when playtesting my multiplayer game, edit the Configs/WindowsNoEditor/Game.ini with different timer lengths and restart the server to see how it plays. Unfortunately, it seems most of the time Game.ini is simply overwritten to be blank. In fact, even the DefaultGame or CleanSource ini files aren't loading.

4) This might be another issue, but my DefaultGame.ini values are no longer loading in the editor. I had PostLoad setting specific values for my configurables when GIsEditor, but it seems those values are now permanent. I can't seem to purge them, and even after thoroughly cleaning the repository of all generated files, the values I had been setting for GIsEditor now load every time, both for the packaged game and the editor (even though I removed the PostLoad code).

So, I'm feeling really lost with INIs... Can someone provide input?

Product Version: Not Selected
Tags:
more ▼

asked Oct 17 '14 at 07:40 PM in C++ Programming

avatar image

Cobryis
477 34 18 47

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question