Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DrLoomis

Pages: [1] 2 3
1
NGUI 3 Support / Re: NGUI 3.0.6 - inertia tensor failed
« on: January 24, 2014, 08:40:30 PM »
I just updated my UI from 2.7.0 to 3.0.9, and when I ran the game I was getting an exceptional number of the "updateMassFromShapes: Compute mesh" errors. I got about 450 on start, and would keep getting them every few seconds as I played.

I was baffled, as my UI doesn't contain any quads or other objects that would throw this error.

Finally, after much pulling of hair, I found that NGUI had added a rigidbody to my UI's parent object for some reason. The way my project is structured, there's a parent object for everything in my scene (done for additive loading purposes), so there was a Rigidbody component on the parent of every object in my scene (player, gameplay objects, set dressing ... everything). It was causing errors to be thrown about all sorts of objects that had nothing to do with the UI.

So anyway, if you run into this error, check NGUI's parent object. As soon as I removed the incorrectly-added Rigidbody and UIPanel script (no idea on earth why that was added automatically as well) and saved my scene, everything went back to normal again.

2
NGUI 3 Support / Oddly Corrupted UISprites
« on: December 14, 2013, 06:12:50 PM »
One of the players of my game (www.thenovelistgame.com) is getting a very odd corruption issue with UISprites. In the game, the player can look at drawings that are displayed by putting a simple UISprite in the middle of the screen. The sprites are all in one shared atlas, and it works fine for everyone on earth except this one player.

When this player displays drawings, he gets bizarrely garbled image, which is attached to this post. This occurs on all of the sprites, not just a single one.

The weird thing is that it's showing stuff from completely different places. The two images in the top half of the image (the gray paper texture and the loading screen) are from a different NGUI atlas.

But just under that are inverted file names in the format you get when you take a screenshot by pressing Cmd+Shift+3 in OSX, which is totally weird b/c that's not even from inside the game. And below that, I have no idea what's showing. The color of the textures makes me think it's displaying a garbled version of some lightmaps, which is totally weird.

Anyway, I'm completely stumped by this. No other player has reported it, and this very simple setup of UISprites on screen has been stable and working for probably a year now.

By the way, this is a game running Unity 3.5.7 running NGUI 2.7.0. I don't know which version of OS X the player is using, but I've sent him an email to find out. The randomness of the images makes me think it's almost some sort of weird graphics card overheating issue or something bizarre like that, though it only seems to affect NGUI, not the rest of the game.

If anyone has any thoughts on what would be causing this, I'd greatly appreciate your help.

3
NGUI 3 Support / Re: New fonts imported with an outline
« on: June 11, 2013, 01:03:50 PM »
That was indeed selected. I recreated the font, then unchecked the box and updated the atlas and that seems to have fixed it. Thanks!

4
NGUI 3 Support / Re: New fonts imported with an outline
« on: June 11, 2013, 12:42:23 PM »
They are white. Like I said, I created these from the exact same files that previously worked in 2.5.x. The only thing that changed was upgrading NGUI.

In fact, yesterday while I was making fonts over and over and over again because of continued crashing, a few times I got those files to produce normal fonts without outlines.

It's impossible that this is a bug with the source files, unless 2.5.x had its own bug that was causing my original source files (which have worked for ... 9 months or so) to come out fine, and then 2.6.x "fixed" the bug and started making the same source files have an outline, but only sometimes.

5
I gave you all the information I could (repro steps and the log file) when I reported the bug seven months ago. A number of other users have also seen the bug and shared information in the thread, and in your own previous posts you said you'd tracked it down to at least one thing (which I guess has since rebroken). Perhaps re-reading the full thread will jog your memory or provide clues.

6
NGUI 3 Support / New fonts imported with an outline
« on: June 10, 2013, 05:19:31 PM »
I have a number of fonts I created many weeks ago. I'm not sure what version of NGUI I used, but it was certainly pre-2.6. These fonts all work fine.

I tried to create some new fonts today, and before I ran into the "creating a new font crashes Unity" bug I successfully created one font. However, the newly-created font had an outline around it. The outline was within the boundaries of the letters themselves; selecting "outline" from the encoding dropdown added an additional outline outside of the letters, as expected.

I was confused by this behavior, so as a test I went and created a new font using the exact same png and txt files I used to create my working fonts weeks ago. Those new fonts also had the outline.

What has changed with font importing? How do I disable these outlines? The issue is clearly with NGUI, given that it occurs with the exact same source files that previously created fonts without outlines in pre-2.6 versions.

OS X 10.8.4
Unity 3.5.7f6

Image attached.

7
Still seeing this.

OS X 10.8.4
Unity 3.5.7f6
NGUI 2.6.2

Any hope of a fix?

8
NGUI 3 Support / Re: Can't move scene view w/ NGUI element selected
« on: April 18, 2013, 07:33:28 PM »
Right button + mouse orbits the camera. Orbiting is something that's generally not desireable in a 2D UI system. Panning = middle mouse button.
For me, right-click + mouse just looks left and right in the scene. Why would it be bad to look left and right while working on a UI element? It doesn't move it, it just lets you look at the object from a different angle.

9
NGUI 3 Support / Re: Can't move scene view w/ NGUI element selected
« on: April 18, 2013, 07:25:48 PM »
I use right-click + mouse to look around and right-click + WASD to pan the camera. Neither work when a label or sprite is selected.

It wasn't like this on 2.3.6 or any earlier version; I only got this bug after upgrading to 2.5.1.

OS X 10.8.3.

10
NGUI 3 Support / Re: Can't move scene view w/ NGUI element selected
« on: April 18, 2013, 06:01:55 PM »
That doesn't have any effect for me. Further clarification: I can move around fine if I have a panel selected, but I can't move if I have a label or sprite selected.

That might be true of other non-panel objects as well, but I only have labels and sprites in my scene at the moment.

11
NGUI 3 Support / Can't move scene view w/ NGUI element selected
« on: April 17, 2013, 09:39:58 PM »
Unity 3.5.7f6, NGUI 2.5.1: when I have an NGUI element selected in the Hierarchy window, I can't pan around or move in the scene view.

If I deselect it, or select any non-NGUI object, I can pan around just fine.

Has anyone else seen this?

12
The rampant crashing completely corrupted my font atlas.

Now I have to go add them all back to the atlas one by one, and possibly recreate them all. Awesome.

13
Still seeing this with 2.5.1 in Unity 3.5.7f6.

Creating fonts in a new scene does seem to help; in my primary gameplay scene I created two fonts successfully and then kept crashing on the third one (i.e. quit, reopen, try the same thing, crash again, wash, rinse, repeat). In a new scene, I was able to create the remainder of my fonts without issue.

It crashed the first time in 2.3.6, so I checked for a new version, updated to 2.5.1 and still got the crash (this was all in my main gameplay scene). So nothing between 2.3.6 and 2.5.1 seems to have affected it. The crash is still lurking. I reported the crashes through the automated bug reporter.

14
NGUI 3 Support / Re: Creating a new font crashes Unity 100% of the time
« on: November 17, 2012, 12:56:36 PM »
So, I just inadvertently found a fix, or at least a workaround. I was going to strip down my project so I could zip it up and send it to ArenMook, so I first copy/pasted it to my desktop. I then went into the folder and deleted this group of files in the attached screenshot.

I was planning to then open the project and delete the rest of the files/prefabs/scenes from within Unity, just in case it needed to track the deletion for metadata or something. But first I decided to see one last time if I could create a font, so I did the same stuff I was doing yesterday and ... it worked just fine without crashing. Same data, same process, suddenly just working.

This was still in the copy project, so I went back to the main project and repeated the steps, just to see if something about copy/pasting the project had fixed the issue. So I deleted that set of files from the main project, tried to create a font, and ... it worked just fine.

So I have no idea why it worked, but deleting the group of files from that screenshot fixed the issue. I have no idea what those files do, so, uh, use this solution at your own risk I guess.

15
NGUI 3 Support / Re: Creating a new font crashes Unity 100% of the time
« on: November 16, 2012, 05:27:11 PM »
Yep, I'll give that a shot. Probably can't get to it until tomorrow, though.

Pages: [1] 2 3