Author Topic: [SOLVED]Initial packages setup question  (Read 2635 times)

Don

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
[SOLVED]Initial packages setup question
« on: November 05, 2014, 11:15:56 AM »
I'm setting up a new project with several Tasharen packs to merge an existing game project into. I would like to have an error-free base project to start from, so merging and the resulting errors will be easier to handle. It will also help me learn the networking process in a more controlled environment.

I have the following packages: Starlink UI, NGUI and HUD Text, TNet, and MPGSK.

I followed the video instructions and first imported Starlink UI, then NGUI, and ran StarlinkUI/TNet Integration. Next, I imported HUD Text, and then TNet. Finally I imported the MPGSK and ran MPGSK/TNet Integration. When that was finished I had the following in the console:

  1. Shader wants normals, but the mesh Laser Beam doesn't have them
  2. UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String)
  3.  
  4. Assets/MPGSK/Game/Scripts/Game/CameraTarget.cs(19,14): warning CS0114: `Tasharen.CameraTarget.OnEnable()' hides inherited member `TNBehaviour.OnEnable()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
  5.  
  6. Assets/StarlinkUI/Scripts/Custom/UI/UICreateServer.cs(25,42): warning CS0618: `TNServerInstance.Start(int, int, string, int)' is obsolete: `Use TNServerInstance.Start(tcpPort, udpPort, lobbyPort, fileName) instead'
  7.  

The first is a message (and easy enough to fix), the second two are warnings; so I am able to run the project. What I get when running are 2 debug messages, and 15 warnings about Localization similar to the following:

  1. Localization key not found: 'Play'
  2. UnityEngine.Debug:LogWarning(Object)
  3. Localization:Get(String) (at Assets/NGUI/Scripts/Internal/Localization.cs:354)
  4. UILocalize:OnLocalize() (at Assets/NGUI/Scripts/UI/UILocalize.cs:104)
  5. UnityEngine.Component:BroadcastMessage(String, SendMessageOptions)
  6. UIRoot:Broadcast(String) (at Assets/NGUI/Scripts/UI/UIRoot.cs:299)
  7. Localization:SelectLanguage(String) (at Assets/NGUI/Scripts/Internal/Localization.cs:282)
  8. Localization:LoadAndSelect(String) (at Assets/NGUI/Scripts/Internal/Localization.cs:170)
  9. Localization:set_language(String) (at Assets/NGUI/Scripts/Internal/Localization.cs:114)
  10. Localization:Get(String) (at Assets/NGUI/Scripts/Internal/Localization.cs:332)
  11. UINews:Awake() (at Assets/StarlinkUI/Scripts/Generic/UI/UINews.cs:19)
  12.  

For the time being, I want to develop on my LAN, primarily on two Windows machines, with the hope of running a client on an iMac as well.

Do I need to be concerned with these errors before continuing, and if so how should I go about correcting them?

Thanks!
Don
« Last Edit: November 06, 2014, 12:05:01 PM by Don »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Initial packages setup question
« Reply #1 on: November 06, 2014, 02:25:16 AM »
The warnings about localization simply tell you that Localization.txt file doesn't contain the expected values. I'm guessing there is more than one. Since you mentioned importing NGUI, I'm going to guess you imported the Examples folder. Examples folder has Resources/Localization.txt. Starlink also has Localization.txt in the Resources folder. Which one will be loaded is undefined. Delete the one in the NGUI folder if you are using the Starlink UI kit.

Don

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Initial packages setup question
« Reply #2 on: November 06, 2014, 12:04:36 PM »
Thank you for the reply, that makes perfect sense. I made a new project and have none of the previous issues.

- Don