1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UE2 - UT2kX Setting Name variable problem [via editor]

Discussion in 'Programming' started by EvilT-ModZ, Jan 18, 2014.

  1. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    42
    Likes Received:
    0
    Hello there!

    I deal with editinlinenew class, so I can't set defaults by script, only via editor.
    Code:
    class ErrandBase extends Object
    	editinlinenew;
    
    Problem with setting up name variables, I need write paths to files, like at picture (in attachments), but it always destroy all symbols after dot
    How can I set up these Name variables?
     

    Attached Files:

  2. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    Names are not supposed to contain dots. The dot is the separator symbol between two name parts of fully-qualified object names. If you think you need a dot, try a string or object variable instead, depending on what you are actually trying to achieve.
     
    Last edited: Jan 18, 2014
  3. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    42
    Likes Received:
    0
    Thank you for reply!

    So... Originally by game developers these variables are set. For example at picture "ApocalypseComment" it also name and it contains dots... I just can't understand.
     
  4. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    42
    Likes Received:
    0
    Solved!

    Done by defaults:
    Code:
    defaultproperties
    {
    	 DefaultPlayerClassName="P2HappyNightEngine.HappyNightDude"
    	 PlayerControllerClassName="P2HappyNightEngine.HappyNightPlayer"
    	 HUDType="P2HappyNightEngine.HappyNightHUD"
         DefaultPlayerName="TheDude"
         GameName="Postal2 Happy Night"
    
         Begin Object Class=DayBase Name=DayBase01
             Description="Monday tonight"
             UniqueName="DAY_A"
             ExcludeDays(0)="DEMO"
             MapTex="p2misc_full.map_day5"
             NewsTex="p2misc.newspaper_day_1"
             DudeNewsComment="DudeDialog.dude_news_monday"
             LoadTex="p2misc_full.loading1"
             DudeStartComment="DudeDialog.dude_map_exit1"
    
    [B]		 Begin Object Class=ErrandBase Name=Errands01
    			 DudeCompletedComment="DudeDialog.dude_map_anddone"
    			 DudeStartComment="DudeDialog.dude_map_getcheck"
    			 DudeWhereComment="DudeDialog.Dude_map_foundrws"
    			 DudeFoundComment="DudeDialog.Dude_map_foundsigs"
    			 bInitiallyActive=True
    			 bIgnoreAfterCompletion=True
    			 Name="Errands01"
    		 End Object
    		 Errands(0)=ErrandBase'P2HappyNightEngine.Errands01'[/B]
    
             Name="DayBase01"
         End Object
         Days(0)=DayBase'P2HappyNightEngine.DayBase01'
    }
    
    It works.
    So, Name can contain dots.
     

Share This Page