Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Failed to add image [TIER2]

Author
Message
Daqs
9
Years of Service
User Offline
Joined: 23rd May 2015
Location:
Posted: 12th Jun 2015 22:00
Workflow of AppGameKit commands:



This gives the following error:

Failed to add image media\imageB.png into image id 1 - image already added with media\imageA.png

Already done:
- Confirmed if sprite is actually deleted using agk::GetSpriteExist(1);

Question: I thought, the ID 1 would be available/free to add a new image since it has already been deleted. Am I wrong? If yes, what's the workaround besides using another ID.
Daqs
9
Years of Service
User Offline
Joined: 23rd May 2015
Location:
Posted: 12th Jun 2015 22:38
Solved: The ID indeed does get cleared and the new image gets added without any errors. I was using unique_ptr that's why I got confused.

Login to post a reply

Server time is: 2024-11-16 18:06:47
Your offset time is: 2024-11-16 18:06:47