Author Topic: SGSK - TNet&NGUI Combo  (Read 4658 times)

GregMeach

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 1
  • Posts: 36
    • View Profile
SGSK - TNet&NGUI Combo
« on: September 02, 2013, 07:18:30 AM »
Hi Aren,

Finally getting back to this and I created a brand new project, imported the sgsk310nt.unitypackage, fixed the "Project Settings" folder. Built and ran it fine. Pretty sure this has TNet v1.2.x

Copied over the project, deleted the TNet folder, re-imported TNet v1.8.0 from the store. Built and run, host game, okay until I fire. I get an error on every mouse click (fire):
  1. parameters do not match signature
  2. TNManager.OnCreate1 (UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Vector3, UnityEngine.Vector3)
  3. UnityEngine.Debug:LogError(Object)
  4. TNet.UnityTools:PrintException(Exception, CachedFunc, Object[]) (at Assets/TNet/Client/TNUnityTools.cs:83)
  5. TNet.UnityTools:ExecuteFirst(List`1, Byte, Object&, Object[]) (at Assets/TNet/Client/TNUnityTools.cs:121)
  6. TNManager:CreateGameObject(GameObject, BinaryReader) (at Assets/TNet/Client/TNManager.cs:789)
  7. TNManager:OnCreateObject(Int32, Int32, UInt32, BinaryReader) (at Assets/TNet/Client/TNManager.cs:749)
  8. TNet.GameClient:ProcessPacket(Buffer, IPEndPoint) (at Assets/TNet/Client/TNGameClient.cs:802)
  9. TNet.GameClient:ProcessPackets() (at Assets/TNet/Client/TNGameClient.cs:627)
  10. TNManager:Update() (at Assets/TNet/Client/TNManager.cs:831)
  11.  
and nothing fires.

I'm going to also get it updated with NGUI to make sure that also works.

If I'm remembering right you said I could just update the package and it should work.

Do let me know if I buggered up the upgrade process.

Thanks

Update: Updated NGUI to v2.6.4 and now my HUD display for SHIELD and ENERGY do not match for 100% - they are like 80% full, even when just starting (so they should be 100%). Let me know if a screenshot will help

 :'(

Edit: Looks like I've lost the most recent combo package; I found an email with this: sgsk320f.unitypackage

but it no longer works. Probably be best to just email the new link - thanks and sorry...
« Last Edit: September 02, 2013, 08:33:07 AM by GregMeach »

GregMeach

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 1
  • Posts: 36
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #1 on: September 03, 2013, 11:06:41 AM »
Thanks Aren,

Got the updated package - downloaded and installed both NGUI and TNet from the store. Fixed the SGSpin.cs(named Spin) file.

After updating the project settings, unfortunately both problem still exist:
1. NGUI health and Energy bars are set to 1.0 but do not extend fully on the graphic image


2. The TNManager.OnCreate1 error is still there when clicking the mouse to fire.
(same error as listed in first post.

Let me know if I can assist in resolving these errors.
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #2 on: September 03, 2013, 07:18:58 PM »
I'll have a look at it -- there may be some differences with the latest version of TNet.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #3 on: September 04, 2013, 05:36:32 AM »
Ok, there was a bug in TNet. 1.8.1b fixes it. I've also updated the SGSK+NGUI+TNet unity package fixing the slider issue you observed.

GregMeach

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 1
  • Posts: 36
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #4 on: September 04, 2013, 10:09:05 AM »
SWEET!!!

Checked the new combo package with NGUI v2.6.5b and TNet v1.8.1b; the mouse fire works fine and the two bars are now displaying properly.

Thanks again Aren for this combined package, I'm stoked to get working on my project.
 8)

danreid70

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #5 on: October 03, 2013, 09:00:58 PM »
Just purchased the SGSK - and requested SGSK/TNET/NGUI combo package (invoice #s in private message from here). I have pretty much the entire "Tasharen Collection" now... :)

Getting some "type or namespace" errors with: SGBorderedSprite.cs (30,30) , SGInputSaved.cs (8,29), and SGTiledSprite (11,30). Thinking this might be because the Asset Store version of SGSK needs to be updated with latest changes to NGUI? Thought the Asset Store version doesn't use NGUI, so I'm not sure what I have imported incorrectly in my game. :(

I'm betting the latest combo version of SGSK fixes this. Can't wait to try it out! Once I get new version installed, I'll reply back on here what the outcome is.

Can't wait to see what you have in store for us next! :)

--Dan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: SGSK - TNet&NGUI Combo
« Reply #6 on: October 04, 2013, 02:58:31 AM »
Yeah the stock version of SGSK is not compatible with NGUI as it literally has NGUI 0.01 in it -- the prototype UI I used as a starting point for NGUI itself -- so the class name and metadata ID collisions are common.