Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Deferred Chickens

A fully-featured 3D drawing system for GameMaker! · By Dragonite

Code Error when running Sample Project.

A topic by himojoe created 49 days ago Views: 48 Replies: 6
Viewing posts 1 to 5

Hi Michael,

I get this error when running the sample project : 

############################################################################################

ERROR in action number 1

of Draw Event for object obj_demo:

texture_set_stage argument 2 incorrect type (ref) expecting a Number or Pointer

 at gml_Script_cluck_deferred_render_begin (line 41) -     texture_set_stage(shader_get_sampler_index(shader, "samp_normal"), global.__cluck_normal_texture);

############################################################################################

gml_Script_cluck_deferred_render_begin (line 41)

gml_Object_obj_demo_Draw_0 (line 4) - cluck_deferred_render_begin(gbuff, shadowmap);


Thanks,

Aaron

Developer

Interesting, I think I know why this is happening but I’ll look properly in a little bit. Hopefully it’s nothing weird.

Developer

Okay, fixed that, uploaded a new version. There was an error in how the normal map was being initialized, which older versions of GM didn’t seem to care about but .13 now errors on.

Sorry to bother you again, but I still get the error in the sample project. I deleted the old version of deffered chickens and imported the updated version. I get the same error.

 Also Cartoon, Luminous and Shadow Chickens aren't included in the  .yymps package anymore.

Developer

Huh, I wonder if this is a different problem than the one I found then. You can send me the project on discord or something you want me to take a deeper look.

Thanks, I have sent you a DM on discord.

Thanks!