Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling #clone on certain classes such as Sprite or Window should raise TypeError #17

Open
Ancurio opened this issue Feb 3, 2014 · 1 comment

Comments

@Ancurio
Copy link
Owner

Ancurio commented Feb 3, 2014

Need to compile a list of these classes first.

Exception message: "can't clone "

@ReinUsesLisp
Copy link
Contributor

ReinUsesLisp commented Feb 23, 2018

From RGSS1 (Ruby built-in classes were excluded): Plane, Sprite, Tilemap, Window, RPG::Sprite and Viewport raise TypeError.

RPG::Troop raises NameError in mkxp while in Game.exe is clonable.

Extraction method (using runtime scripts):

$string = ""
def test(klass, *args)
  $string += "#{klass}: "
  object = klass.new(*args)
  object.clone
  $string += "Clonable\n"
rescue => ex
  $string += "#{ex.class.to_s}\n"
end

test(Viewport, 0, 0, 1, 1)
test(Bitmap, 1, 1)
# ...

file = File.open($MKXP ? "output-mkxp" : "output-wine", "wb")
file.write($string)
file.close

Then just $ diff output-mkxp output-wine

I can't check RGSS2 and 3 right now, but this method should work too.

Speak2Erase pushed a commit to Speak2Erase/mkxp-oneshot-reference that referenced this issue May 19, 2024
Speak2Erase added a commit to Speak2Erase/mkxp-oneshot-reference that referenced this issue May 21, 2024
…dating

Fix the linux build not actually overwriting the built binaries if they exist in the dist directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants