File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change @@ -752,17 +752,17 @@ static bool craftax_textures_loaded = false;
752752static void craftax_load_textures (void ) {
753753 if (craftax_textures_loaded ) return ;
754754 const char * candidates [] = {
755- "ocean /craftax/textures.bin" ,
756- "../ocean /craftax/textures.bin" ,
757- "../../ocean /craftax/textures.bin" ,
755+ "resources /craftax/textures.bin" ,
756+ "../resources /craftax/textures.bin" ,
757+ "../../resources /craftax/textures.bin" ,
758758 };
759759 FILE * f = NULL ;
760760 for (size_t i = 0 ; i < sizeof (candidates )/sizeof (candidates [0 ]); i ++ ) {
761761 f = fopen (candidates [i ], "rb" );
762762 if (f ) break ;
763763 }
764764 if (!f ) {
765- fprintf (stderr , "craftax: textures.bin not found — run ocean/craftax/pack_textures.py\n" );
765+ fprintf (stderr , "craftax: textures.bin not found in resources/craftax -- run ocean/craftax/pack_textures.py\n" );
766766 exit (1 );
767767 }
768768 const size_t tile_bytes = CRAFTAX_TEX_TILE_PX * CRAFTAX_TEX_TILE_PX * 4 ;
Original file line number Diff line number Diff line change 2121ASSETS = Path (__file__ ).resolve ().parents [2 ] / (
2222 ".venv/lib/python3.12/site-packages/craftax/craftax/assets"
2323)
24- OUT_BIN = Path (__file__ ).parent / "textures.bin"
24+ OUT_BIN = Path (__file__ ).resolve (). parents [ 2 ] / "resources" / "craftax" / "textures.bin"
2525
2626TILE = 16
2727
Original file line number Diff line number Diff line change @@ -1008,17 +1008,17 @@ static bool cc_textures_loaded = false;
10081008static void cc_load_textures (void ) {
10091009 if (cc_textures_loaded ) return ;
10101010 const char * candidates [] = {
1011- "ocean /craftax/textures.bin" ,
1012- "../ocean /craftax/textures.bin" ,
1013- "../../ocean /craftax/textures.bin" ,
1011+ "resources /craftax/textures.bin" ,
1012+ "../resources /craftax/textures.bin" ,
1013+ "../../resources /craftax/textures.bin" ,
10141014 };
10151015 FILE * f = NULL ;
10161016 for (size_t i = 0 ; i < sizeof (candidates )/sizeof (candidates [0 ]); i ++ ) {
10171017 f = fopen (candidates [i ], "rb" );
10181018 if (f ) break ;
10191019 }
10201020 if (!f ) {
1021- fprintf (stderr , "craftax_classic: textures.bin not found — run ocean/craftax/pack_textures.py\n" );
1021+ fprintf (stderr , "craftax_classic: textures.bin not found in resources/craftax -- run ocean/craftax/pack_textures.py\n" );
10221022 exit (1 );
10231023 }
10241024 const size_t tile_bytes = CC_TEX_TILE_PX * CC_TEX_TILE_PX * 4 ;
File renamed without changes.
Original file line number Diff line number Diff line change 1111isn't rewarded twice for reaching the same tier.
1212
1313Usage:
14- uv run python scripts /craftax_convergence_bench.py --timesteps 10_000_000
15- uv run python scripts /craftax_convergence_bench.py --skip-train --plot-only
14+ uv run python tests /craftax_convergence_bench.py --timesteps 10_000_000
15+ uv run python tests /craftax_convergence_bench.py --skip-train --plot-only
1616"""
1717import argparse
1818import json
You can’t perform that action at this time.
0 commit comments