Author Topic: "ButtonSelfRender Error" wut?  (Read 804 times)

Offline Kahuna

  • Core Member
  • *****
  • Posts: 2,210
  • Kahuna Matata!
"ButtonSelfRender Error" wut?
« on: August 12, 2012, 02:45:43 AM »
I've seen this once or twice before. Is it a bug or what? Game works normally though.
There's also a "ButtonSelfRenderErrors.txt" in "C:\Program Files (x86)\Steam\steamapps\common\ai war fleet command\RuntimeData".
« Last Edit: August 12, 2012, 02:47:27 AM by Kahuna »
set /A diff=10
if %diff%==max (
   set /A me=:)
) else (
   set /A me=SadPanda
)
echo Check out my AI War strategy guide and find your inner Super Cat!
echo 2592 hours of AI War and counting!
echo Kahuna matata!

Offline keith.lamothe

  • Arcen Games Staff
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,504
Re: "ButtonSelfRender Error" wut?
« Reply #1 on: August 12, 2012, 09:15:56 AM »
I've seen this once or twice before. Is it a bug or what? Game works normally though.
There's also a "ButtonSelfRenderErrors.txt" in "C:\Program Files (x86)\Steam\steamapps\common\ai war fleet command\RuntimeData".
Please do report those whenever you see them :)  There's been an extremely intermittent null-bug popping around inside the game-button (the ones used for the buy/tech menus, etc) render code for like a couple years, and I've never been able to reproduce it, and errors from the distributed version of the game don't give line numbers (probably the second thing I most miss from the pre-Unity version), and it's a loooong method.  So I've added more and more debug info that it dumps when it hits an exception in there and this is the first time I've seen a log since I added the last bit.

Thankfully, your log tells me that there was something wrong with rendering a tech button (debug step 18), and that it's probably because the button's "Tag" was null instead of something convertible to a TechType.  Why on earth that would happen, I don't know.  I'll change it to just early-out of the render process for that button in that case in the future, and see what happens.  Maybe you'll see a blank tech button, or the button will stop drawing altogether when it realizes it's not valid, etc.

Anyway, thanks for the report :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: "ButtonSelfRender Error" wut?
« Reply #2 on: August 12, 2012, 08:08:06 PM »
(probably the second thing I most miss from the pre-Unity version)
Well now I wanna know the thing you miss most =p
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline keith.lamothe

  • Arcen Games Staff
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,504
Re: "ButtonSelfRender Error" wut?
« Reply #3 on: August 12, 2012, 09:19:32 PM »
(probably the second thing I most miss from the pre-Unity version)
Well now I wanna know the thing you miss most =p
Profiling.  Specifically line-level CPU-usage profiling and CLR memory profiling.  Unity has some decent profiling but every time I think of what I used to be able to do with ANTS I almost cry.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!