WARNING: V1 graphics compatibility is deprecated. Some features may not work as expected

WARNING: V1 graphics compatibility is deprecated. Some features may not work as expected

what does it really mean?

if it is my computer…well…I did not have this one before.

also lately the simulator is shutting down on me for no reason , I am not in the level of making complex stuff yet.  

o_O. What are you following? A tutorial? A template you got from the dark webs? V1 graphics is very old.

You’re running a project with the v1 compatibility flag set in config.lua.

As @agramonte said, that is quite old and you should either #1  not use it, or #2 convert it to v2.

To do #2

a. remove the flag from config.lua

b. run the project in the simulator.

c. follow-up on every failure (you will encounter many) and fix them.

Note: Eventually, you’ll see a pattern and be able to fix many issues at the same time by searching the code/files for similar old-style function calls, etc.

To do #1, tell us what example (with a link if possible) you’re using and what you hope to use it for.  We may be able to suggest an alternative.

Ohoo now i understand. I was doing a tutorial made by j.a.white called mobile game development , from o’reilly site . I downloaded the resources files attached to the course and instead of making a new project i was working on the files that came with it so the config.lua was deprecated . Now i opened the config.lua and i can see the line that says :, graphicsCompatibilty = 1 I will just make a new project and work there. Thanks. I thought there was something wrong with my graphic card. Lol. Btw : great tutorials ,i really like the way he explains.

Do you mean J.A. Whye? (not White) If so, yes he does a great job.

acording to the site it is “White” 

https://learning.oreilly.com/search/?query=author%3A%22J.A.%20White%22&sort=relevance&highlight=true

but then again , in the description it says whye :

expert author J.A. Whye 

big mistake for a serious site as o’reilly.

Looks like the site has it wrong, if you look at the cover it says Whye. Anyway, doesn’t really matter! :wink:

There are several categories of issues that you will run into moving from Graphics 1 to Graphics 2.

  1. object:setReferencePoint() has been replaced by object.anchorX, object.anchorY

  2. All display objects now default to their center when setting .x and .y. Previously, some objects like display.newRect, .x and .y were the top left corner. You can use .anchorX and .anchorY.

  3. object:setTextColor() was removed in favor of object:setFillColor()

  4. If the template uses the Director class for screen management, it was never updated to be compatible with Graphics 2

There may be other issues, but those are the core changes that need to be made. As always thoroughly test your app after making these updates.

Rob

o_O. What are you following? A tutorial? A template you got from the dark webs? V1 graphics is very old.

You’re running a project with the v1 compatibility flag set in config.lua.

As @agramonte said, that is quite old and you should either #1  not use it, or #2 convert it to v2.

To do #2

a. remove the flag from config.lua

b. run the project in the simulator.

c. follow-up on every failure (you will encounter many) and fix them.

Note: Eventually, you’ll see a pattern and be able to fix many issues at the same time by searching the code/files for similar old-style function calls, etc.

To do #1, tell us what example (with a link if possible) you’re using and what you hope to use it for.  We may be able to suggest an alternative.

Ohoo now i understand. I was doing a tutorial made by j.a.white called mobile game development , from o’reilly site . I downloaded the resources files attached to the course and instead of making a new project i was working on the files that came with it so the config.lua was deprecated . Now i opened the config.lua and i can see the line that says :, graphicsCompatibilty = 1 I will just make a new project and work there. Thanks. I thought there was something wrong with my graphic card. Lol. Btw : great tutorials ,i really like the way he explains.

Do you mean J.A. Whye? (not White) If so, yes he does a great job.

acording to the site it is “White” 

https://learning.oreilly.com/search/?query=author%3A%22J.A.%20White%22&sort=relevance&highlight=true

but then again , in the description it says whye :

expert author J.A. Whye 

big mistake for a serious site as o’reilly.

Looks like the site has it wrong, if you look at the cover it says Whye. Anyway, doesn’t really matter! :wink:

There are several categories of issues that you will run into moving from Graphics 1 to Graphics 2.

  1. object:setReferencePoint() has been replaced by object.anchorX, object.anchorY

  2. All display objects now default to their center when setting .x and .y. Previously, some objects like display.newRect, .x and .y were the top left corner. You can use .anchorX and .anchorY.

  3. object:setTextColor() was removed in favor of object:setFillColor()

  4. If the template uses the Director class for screen management, it was never updated to be compatible with Graphics 2

There may be other issues, but those are the core changes that need to be made. As always thoroughly test your app after making these updates.

Rob