Coder Social home page Coder Social logo

SpriteTest - Regression about cocos2d-xna HOT 16 CLOSED

kjpou1 avatar kjpou1 commented on August 11, 2024
SpriteTest - Regression

from cocos2d-xna.

Comments (16)

totallyeviljake avatar totallyeviljake commented on August 11, 2024

Is this in CCBReader?

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

CCSizeConverter.cs line 28? NULL value there? From CCSize.Parse line 272 while reading the sprite frames from a PList.

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

SpriteFrameAliasNameTest (line 24)

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

this one is an incorrectly formatted type 3 Plist file.

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

This regression was introduced by the new type converters. In the past, the CCSize.parse would ignore the null I think, but the type converters do not. That's good, because this PList is clearly not format 3.

animations/grossini-aliases.plist, it's a format 2 hybrid with aliases in it.

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

The original cocos2d-x had the correct plist for this one, so I pulled it in

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

I my commit fixes this?

Cocos2DXNA@9242873

from cocos2d-xna.

kjpou1 avatar kjpou1 commented on August 11, 2024

Jake

Thanks for that. I was going to allow null and pass it on through which would not have been good in the end.

I will test you change. Is there anything we really should be checking here instead and send a more informative error?

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

The PList reader should handle incorrectly formatted fields better than it does. So if we want to fix this NRE then it should happen at the Plist level instead of the type converter.

from cocos2d-xna.

kjpou1 avatar kjpou1 commented on August 11, 2024

That did not work.

I totally agree with what you say it should be fixed at the Plist level instead of the type converter. That means that the Plist is not correctly formatted for some reason.

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

All of the sprite tests work for me. Which one is failing for you?

from cocos2d-xna.

kjpou1 avatar kjpou1 commented on August 11, 2024

Oh I see I think it is because it was just the .plist that you committed and not the .xnb of the plist. I do not have windows here to create the content.

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

oops, sorry!

from cocos2d-xna.

kjpou1 avatar kjpou1 commented on August 11, 2024

Here is what I got from git:

Kenneth-Pounceys-iMac:cocos2d-xna Jimmy$ git fetch upstream
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 7), reused 7 (delta 4)
Unpacking objects: 100% (10/10), done.
From https://github.com/totallyevil/cocos2d-xna
d43515e..9242873 master -> upstream/master
Kenneth-Pounceys-iMac:cocos2d-xna Jimmy$ git merge upstream/master
Merge made by the 'recursive' strategy.
tests/testsContent/animations/grossini-aliases.plist | 500 +++++++++++++++++++++---------------------
1 file changed, 250 insertions(+), 250 deletions(-)

from cocos2d-xna.

totallyeviljake avatar totallyeviljake commented on August 11, 2024

Cocos2DXNA@f00217c

from cocos2d-xna.

kjpou1 avatar kjpou1 commented on August 11, 2024

Yes!!! And another one bites the dust.

Thanks. That really is better than what I was going to do.

from cocos2d-xna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.