Ta3d-More coding help

You have a problem with TA3D, it doesn't run or it crashes...
/
Vous avez un problème avec TA3D, il ne se lance pas ou plante...
Post Reply
Flashbang232
Posts: 155
Joined: Tue Aug 03, 2010 6:59 pm
Location: Behind LOIC

Ta3d-More coding help

Post by Flashbang232 » Sat Jan 01, 2011 11:09 pm

1:)Isnt there already ai scripts or something?
then why do we have this in ai folder? :

Code: Select all

computerBRAIN            BRAIN            
{computer.ai} \ta3d\ai\

also, i found png plugin libpng12-0.dll. good read. :P


supermassive wall of code, dear reader

Code: Select all

png_bKGD png_build_gamma_table png_build_grayscale_palette png_cHRM png_calculate_crc png_check_cHRM_fixed png_check_chunk_name png_check_keyword png_check_sig png_chunk_error png_chunk_warning png_combine_row png_convert_from_struct_tm png_convert_from_time_t png_convert_to_rfc1123 png_crc_error png_crc_finish png_crc_read png_create_info_struct png_create_read_struct png_create_read_struct_2 png_create_struct png_create_struct_2 png_create_write_struct png_create_write_struct_2 png_data_freer png_decompress_chunk png_default_flush png_default_read_data png_default_write_data png_destroy_info_struct png_destroy_read_struct png_destroy_struct png_destroy_struct_2 png_destroy_write_struct png_do_background png_do_bgr png_do_chop png_do_dither png_do_expand png_do_expand_palette png_do_gamma png_do_gray_to_rgb png_do_invert png_do_pack png_do_packswap png_do_read_filler png_do_read_interlace png_do_read_intrapixel png_do_read_invert_alpha png_do_read_swap_alpha png_do_read_transformations png_do_rgb_to_gray png_do_shift png_do_strip_filler png_do_swap png_do_unpack png_do_unshift png_do_write_interlace png_do_write_intrapixel png_do_write_invert_alpha png_do_write_swap_alpha png_do_write_transformations png_error png_flush png_free png_free_data png_free_default png_gAMA png_get_IHDR png_get_PLTE png_get_asm_flagmask png_get_asm_flags png_get_bKGD png_get_bit_depth png_get_cHRM png_get_cHRM_fixed png_get_channels png_get_color_type png_get_compression_buffer_size png_get_compression_type png_get_copyright png_get_error_ptr png_get_filter_type png_get_gAMA png_get_gAMA_fixed png_get_hIST png_get_header_ver png_get_header_version png_get_iCCP png_get_image_height png_get_image_width png_get_int_32 png_get_interlace_type png_get_io_ptr png_get_libpng_ver png_get_mem_ptr png_get_mmx_bitdepth_threshold png_get_mmx_flagmask png_get_mmx_rowbytes_threshold png_get_oFFs png_get_pCAL png_get_pHYs png_get_pixel_aspect_ratio png_get_pixels_per_meter png_get_progressive_ptr png_get_rgb_to_gray_status png_get_rowbytes png_get_rows png_get_sBIT png_get_sCAL png_get_sPLT png_get_sRGB png_get_signature png_get_tIME png_get_tRNS png_get_text png_get_uint_16 png_get_uint_31 png_get_uint_32 png_get_unknown_chunks png_get_user_chunk_ptr png_get_user_height_max png_get_user_transform_ptr png_get_user_width_max png_get_valid png_get_x_offset_microns png_get_x_offset_pixels png_get_x_pixels_per_meter png_get_y_offset_microns png_get_y_offset_pixels png_get_y_pixels_per_meter png_hIST png_handle_IEND png_handle_IHDR png_handle_PLTE png_handle_as_unknown png_handle_bKGD png_handle_cHRM png_handle_gAMA png_handle_hIST png_handle_iCCP png_handle_oFFs png_handle_pCAL png_handle_pHYs png_handle_sBIT png_handle_sCAL png_handle_sPLT png_handle_sRGB png_handle_tEXt png_handle_tIME png_handle_tRNS png_handle_unknown png_handle_zTXt png_iCCP png_iTXt png_info_destroy png_info_init png_info_init_3 png_init_io png_init_read_transformations png_libpng_ver png_malloc png_malloc_default png_malloc_warn png_memcpy_check png_memset_check png_mmx_support png_oFFs png_pCAL png_pHYs png_pass_dsp_mask png_pass_inc png_pass_mask png_pass_start png_pass_yinc png_pass_ystart png_permit_empty_plte png_permit_mng_features png_process_IDAT_data png_process_data png_process_some_data png_progressive_combine_row png_push_crc_finish png_push_crc_skip png_push_fill_buffer png_push_handle_tEXt png_push_handle_unknown png_push_handle_zTXt png_push_have_end png_push_have_info png_push_have_row png_push_process_row png_push_read_IDAT png_push_read_chunk png_push_read_sig png_push_read_tEXt png_push_read_zTXt png_push_restore_buffer png_push_save_buffer png_read_chunk_header png_read_data png_read_destroy png_read_end png_read_filter_row png_read_finish_row png_read_image png_read_info png_read_init png_read_init_2 png_read_init_3 png_read_png png_read_push_finish_row png_read_row png_read_rows png_read_start_row png_read_transform_info png_read_update_info png_reset_crc png_reset_zstream png_sBIT png_sCAL png_sPLT png_sRGB png_save_int_32 png_save_uint_16 png_save_uint_32 png_set_IHDR png_set_PLTE png_set_add_alpha png_set_asm_flags png_set_bKGD png_set_background png_set_bgr png_set_cHRM png_set_cHRM_fixed png_set_compression_buffer_size png_set_compression_level png_set_compression_mem_level png_set_compression_method png_set_compression_strategy png_set_compression_window_bits png_set_crc_action png_set_dither png_set_error_fn png_set_expand png_set_expand_gray_1_2_4_to_8 png_set_filler png_set_filter png_set_filter_heuristics png_set_flush png_set_gAMA png_set_gAMA_fixed png_set_gamma png_set_gray_1_2_4_to_8 png_set_gray_to_rgb png_set_hIST png_set_iCCP png_set_interlace_handling png_set_invalid png_set_invert_alpha png_set_invert_mono png_set_keep_unknown_chunks png_set_mem_fn png_set_mmx_thresholds png_set_oFFs png_set_pCAL png_set_pHYs png_set_packing png_set_packswap png_set_palette_to_rgb png_set_progressive_read_fn png_set_read_fn png_set_read_status_fn png_set_read_user_chunk_fn png_set_read_user_transform_fn png_set_rgb_to_gray png_set_rgb_to_gray_fixed png_set_rows png_set_sBIT png_set_sCAL png_set_sPLT png_set_sRGB png_set_sRGB_gAMA_and_cHRM png_set_shift png_set_sig_bytes png_set_strip_16 png_set_strip_alpha png_set_strip_error_numbers png_set_swap png_set_swap_alpha png_set_tIME png_set_tRNS png_set_tRNS_to_alpha png_set_text png_set_text_2 png_set_unknown_chunk_location png_set_unknown_chunks png_set_user_limits png_set_user_transform_info png_set_write_fn png_set_write_status_fn png_set_write_user_transform_fn png_sig png_sig_cmp png_start_read_image png_tEXt png_tIME png_tRNS png_warning png_write_IDAT png_write_IEND png_write_IHDR png_write_PLTE png_write_bKGD png_write_cHRM png_write_cHRM_fixed png_write_chunk png_write_chunk_data png_write_chunk_end png_write_chunk_start png_write_data png_write_destroy png_write_end png_write_filtered_row png_write_find_filter png_write_finish_row png_write_flush png_write_gAMA png_write_gAMA_fixed png_write_hIST png_write_iCCP png_write_image png_write_info png_write_info_before_PLTE png_write_init png_write_init_2 png_write_init_3 png_write_oFFs png_write_pCAL png_write_pHYs png_write_png png_write_row png_write_rows png_write_sBIT png_write_sCAL png_write_sPLT png_write_sRGB png_write_sig png_write_start_row png_write_tEXt png_write_tIME png_write_tRNS png_write_zTXt png_zTXt png_zalloc png_zfree  
where it always says stuff like "init_2" or something, is it translated into the "2nd initiative" or something similar? And does this control the way a png is supposed to be structured in ta?


This ta3d is very, very interesting. Lots more files, more code, i like it.

Looks kind of like something that controls the display of png. Is there like a freeware *full version* dll editor/decoder that you [ta3d team] uses?

Also, where is 3dmeditor and is there a tutorial on how to use it?

We need our own version of FileUniverse. :lol:

Wait....libtff.dll, libogg.dll?

tiff & ogg (ta3d music) files?

So then, im forming a hypothesis now. These dll files DO control how the actual tiff-ogg-png files are used/displayed, huh!

Code: Select all

0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s
also, what is with the numbers and alphabet? (lua51.dll-viewed in notepad) Mr. Lua dll needs to his abcs and 123s.

Also, im going to google the definiton of source code. (seriously). I know how to code, but i dont know names of stuff

Code: Select all

Ùf0
lol ufo format. :P
When you cannot trust your government to lead the nation to better times is when you know the ship is sinking

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Ta3d-More coding help

Post by zuzuf » Wed Jan 05, 2011 6:18 pm

The AI files in \ta3d\ai\ contains some informations used only by some legacy AI code, in current state they are useless but you can write your own AIs in Lua and put them in ta3d/scripts/ai/. TA3D will list lua files in ta3d/scripts/ai/ as Lua AIs you can select in the AIs list for computer players.

TA3D 0.6 relies on SDL (SDL, SDL_image, SDL_net, SDL_mixer, SMPEG) for 2D graphics routines, image loading, portable networking stuffs, etc ... the SDL libraries sometimes rely on other libraries to support various image and music file formats. For questions specific to SDL libraries, you should have a look at their website: http://www.libsdl.org/

You can find 3DMEditor2's source code in TA3D source tree (trunk/src/3DMEditor, cf http://trac.ta3d.org/browser/trunk/src/3DMEditor), packages are available in the FTP repository:
ftp://downloads.ta3d.org/binaries/windows/dev/0.6/
Flashbang232 wrote:also, what is with the numbers and alphabet?
For what ? Lua ? TA3D's ingame/menus text ?
TA3D uses FTGL (a GL truetype font library) to display text. Internally test is encoded as UTF8 and uses Unicode fonts.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Ta3d-More coding help

Post by Balthazar » Thu Jan 06, 2011 10:16 am

Flashbang232 wrote:Also, where is 3dmeditor and is there a tutorial on how to use it?
Here you go:
http://trac.ta3d.org/

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests