Hi,

Copy th following files from 3dgs samples folder in a another one :
- samples.wrs
- knights_on_wheels.c
- skycube+6.dds
- terrain.hmp

Rename samples.wrs to samples.abc tongue

Add the following code in main function after "on_esc=quit":
Code:
add_resource("samples.abc");



You can aloso do (but I think you need to free the buffer when not needed anymore):
Code:
char *buffer = file_load("samples.abc", NULL, NULL);	add_resource(buffer);



Best regards.