I can see two possible causes for the problem.

First - does your "block.mdl" have an actual built-in material?
(in MED go to EDIT / MANAGE_SKINS and click SKIN SETTINGS button, and make sure the skin has the
MATERIAL_SETUP tickbox ticked ON. If not, put it ON then save and re-run your existing code. )


Otherwise try this,
Code:
fhandle = file_open_read("Level01.txt");
Block_Count = file_asc_read(fhandle)*256 + file_asc_read(fhandle);

	for (i=1; i<=Block_Count; i++)
		{
			my = ent_create("Level01\\Block.mdl", vector (
				file_asc_read(fhandle) + file_asc_read(fhandle)*256,
				file_asc_read(fhandle) + file_asc_read(fhandle)*256,
				file_asc_read(fhandle)), NULL);
			//ent_clone (my);	// not needed probably
			my.scale_x = file_asc_read(fhandle);
			my.scale_y = file_asc_read(fhandle);
				
			my.material = mtl_create();	// <<< major change
			//my.material.??? = ???;	// <<< may need to change some defaults
			
			my.material.emissive_blue = file_asc_read(fhandle);	
			my.material.emissive_green = file_asc_read(fhandle);
			my.material.emissive_red = file_asc_read(fhandle);
			
			vec_set(my.material.ambient_blue, nullvector);	//for tidyness sake
		}

file_close(fhandle); 
Let us know which helps, if any...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial