Crossfire Server, Trunk
make_face_from_files Namespace Reference

Functions

def frame_code (frame)
 

Variables

string anim_file = "animation {0}\nfacings {1}\n".format(args.face, args.facings)
 
list anims = []
 
 args = parser.parse_args()
 
 default
 
int facing = 1
 
list facings = [1]
 
int frame = 1
 
 frames_per_direction = len(args.files) / args.facings
 
 help
 
 int
 
list magicmap = []
 
 nargs
 
 out = open("{0}.face".format(args.face), 'w')
 
 parser
 
 required
 
 str
 
 True
 
 type
 

Function Documentation

◆ frame_code()

def make_face_from_files.frame_code (   frame)

Definition at line 18 of file make_face_from_files.py.

Variable Documentation

◆ anim_file

string make_face_from_files.anim_file = "animation {0}\nfacings {1}\n".format(args.face, args.facings)

Definition at line 58 of file make_face_from_files.py.

◆ anims

list make_face_from_files.anims = []

◆ args

make_face_from_files.args = parser.parse_args()

Definition at line 37 of file make_face_from_files.py.

Referenced by inja::Environment.add_void_callback(), addReply(), cfanim_globalEventListener(), cfapi_archetype_get_property(), cfapi_cost_string_from_value(), cfapi_friendlylist_get_next(), cfapi_generate_random_map(), cfapi_get_hooks(), cfapi_get_time(), cfapi_log(), cfapi_map_change_light(), cfapi_map_create_path(), cfapi_map_delete_map(), cfapi_map_find_by_archetype_name(), cfapi_map_get_map(), cfapi_map_get_map_property(), cfapi_map_get_object_at(), cfapi_map_has_been_loaded(), cfapi_map_message(), cfapi_map_out_of_map(), cfapi_map_set_map_property(), cfapi_map_trigger_connected(), cfapi_map_update_position(), cfapi_object_apply(), cfapi_object_apply_below(), cfapi_object_cast(), cfapi_object_change_abil(), cfapi_object_change_exp(), cfapi_object_check_spell(), cfapi_object_check_trigger(), cfapi_object_clean_object(), cfapi_object_clear(), cfapi_object_clone(), cfapi_object_create(), cfapi_object_delete(), cfapi_object_describe(), cfapi_object_distance(), cfapi_object_drain(), cfapi_object_drop(), cfapi_object_find_archetype_inside(), cfapi_object_find_by_arch_name(), cfapi_object_find_by_name(), cfapi_object_fix(), cfapi_object_forget_spell(), cfapi_object_get_key(), cfapi_object_get_property(), cfapi_object_give_skill(), cfapi_object_identify(), cfapi_object_insert(), cfapi_object_learn_spell(), cfapi_object_merge(), cfapi_object_move(), cfapi_object_on_same_map(), cfapi_object_pay_amount(), cfapi_object_pay_item(), cfapi_object_perm_exp(), cfapi_object_pickup(), cfapi_object_query_money(), cfapi_object_remove(), cfapi_object_remove_depletion(), cfapi_object_reset(), cfapi_object_say(), cfapi_object_set_key(), cfapi_object_set_property(), cfapi_object_split(), cfapi_object_spring_trap(), cfapi_object_teleport(), cfapi_object_transfer(), cfapi_object_transmute(), cfapi_object_update(), cfapi_object_user_event(), cfapi_party_get_property(), cfapi_player_can_pay(), cfapi_player_find(), cfapi_player_knowledge(), cfapi_player_message(), cfapi_player_quest(), cfapi_region_get_property(), cfapi_register_command(), cfapi_set_random_map_variable(), cfapi_system_add_string(), cfapi_system_check_path(), cfapi_system_directory(), cfapi_system_find_animation(), cfapi_system_find_face(), cfapi_system_find_string(), cfapi_system_get_archetype_vector(), cfapi_system_get_map_vector(), cfapi_system_get_object_vector(), cfapi_system_get_party_vector(), cfapi_system_get_region_vector(), cfapi_system_re_cmp(), cfapi_system_register_global_event(), cfapi_system_remove_string(), cfapi_system_strdup_local(), cfapi_system_unregister_global_event(), cfapi_timer_create(), cfapi_timer_destroy(), cfapi_unregister_command(), cflogger_globalEventListener(), cfnewspaper_globalEventListener(), cfpython_globalEventListener(), cfrhg_globalEventListener(), citylife_globalEventListener(), clock_listener(), costStringFromValue(), count_unpaid(), count_unpaid_callback(), nlohmann::basic_json.create(), createCFObject(), createCFObjectByName(), createMap(), Crossfire_Archetype_GetNewObject(), Crossfire_Map_new(), Crossfire_Object_ActivateRune(), Crossfire_Object_AddExp(), Crossfire_Object_Apply(), Crossfire_Object_Arrest(), Crossfire_Object_Cast(), Crossfire_Object_CastAbility(), Crossfire_Object_ChangeAbil(), Crossfire_Object_CheckArchInventory(), Crossfire_Object_CheckInventory(), Crossfire_Object_CheckTrigger(), Crossfire_Object_Clone(), Crossfire_Object_CreateInside(), Crossfire_Object_CreateTimer(), Crossfire_Object_Drop(), Crossfire_Object_Event(), Crossfire_Object_Fix(), Crossfire_Object_ForgetSpell(), Crossfire_Object_GetOutOfMap(), Crossfire_Object_GetResist(), Crossfire_Object_InsertInto(), Crossfire_Object_KnowSpell(), Crossfire_Object_LearnSpell(), Crossfire_Object_Move(), Crossfire_Object_MoveTo(), Crossfire_Object_new(), Crossfire_Object_Pay(), Crossfire_Object_PayAmount(), Crossfire_Object_PermExp(), Crossfire_Object_QueryName(), Crossfire_Object_ReadKey(), Crossfire_Object_Remove(), Crossfire_Object_RemoveDepletion(), Crossfire_Object_Reposition(), Crossfire_Object_Say(), Crossfire_Object_SetResist(), Crossfire_Object_Split(), Crossfire_Object_Take(), Crossfire_Object_Teleport(), Crossfire_Object_WriteKey(), Crossfire_Party_GetPlayers(), Crossfire_Player_CanPay(), Crossfire_Player_Message(), Crossfire_Player_new(), Crossfire_Region_GetParent(), destroyTimer(), do_test(), nlohmann::basic_json.emplace(), nlohmann::basic_json.emplace_back(), eventListener(), events_execute_global_event(), findAnimation(), findFace(), findPlayer(), generate_page_and_link(), generate_picture_link(), getArchetypes(), getCFPythonVersion(), getConfigDirectory(), getDataDirectory(), getEvent(), getFriendlyList(), getLocalDirectory(), getMapDirectory(), getMapHasBeenLoaded(), getMaps(), getMonthName(), getParties(), getPeriodofdayName(), getPlayerDirectory(), getPlayers(), getPluginProperty(), getPrivateDictionary(), getRegions(), getReturnValue(), getScriptName(), getScriptParameters(), getSeasonName(), getSharedDictionary(), getTempDirectory(), getTime(), getUniqueDirectory(), getWeekdayName(), getWhatIsMessage(), getWhoAmI(), getWhoIsActivator(), getWhoIsThird(), globalEventListener(), init_renderer_env(), nlohmann::basic_json.insert_iterator(), JSON_decode(), log_message(), Map_ChangeLight(), Map_Check(), Map_CreateObject(), Map_GetFirstObjectAt(), Map_Insert(), Map_InsertAround(), Map_Message(), Map_Next(), Map_TriggerConnected(), matchString(), news_cat(), npcSay(), Player_GiveKnowledge(), Player_KnowledgeKnown(), Player_QuestGetState(), Player_QuestSetState(), Player_QuestStart(), Player_QuestWasCompleted(), readyMap(), registerCommand(), registerGEvent(), setPlayerMessage(), setReturnValue(), unregisterGEvent(), and inja::Renderer.visit().

◆ default

make_face_from_files.default

Definition at line 30 of file make_face_from_files.py.

◆ facing

int make_face_from_files.facing = 1

Definition at line 56 of file make_face_from_files.py.

◆ facings

list make_face_from_files.facings = [1]

◆ frame

int make_face_from_files.frame = 1

Definition at line 57 of file make_face_from_files.py.

◆ frames_per_direction

make_face_from_files.frames_per_direction = len(args.files) / args.facings

Definition at line 39 of file make_face_from_files.py.

◆ help

make_face_from_files.help

Definition at line 30 of file make_face_from_files.py.

◆ int

make_face_from_files.int

Definition at line 32 of file make_face_from_files.py.

Referenced by add_abilities(), CFGuilds.CFGuild.add_demerits(), add_object_to_socklist(), CFGuilds.CFGuildHouses.add_questpoints(), CFGuilds.CFGuild.add_questpoints(), animate_weapon(), powerbroker.buy_mana(), QuestApplyIf.can_apply(), cast_spell(), manor.challenge_correct_reply(), reputation_trigger_connect.check(), dialog_check.checkactionfile(), manor.claim_reward(), ship.clearTimer(), clipped_percent(), banksay.cmd_convert(), banksay.cmd_deposit(), banksay.cmd_withdraw(), CFBank.CFBank.convert_legacy_balance(), crypt_string(), sunnista.do_absorb(), python.do_attr(), banquet.do_back(), banquet.do_banquet(), trigger.do_delayed_trigger(), python.do_exp(), python.do_light(), python.do_maps(), guild_dues.GuildDues.do_pay(), sunnista.do_release(), do_single_item(), do_symptoms(), python.do_timer_kill(), guild_dues.GuildDues.do_withdraw(), python.do_writekey(), draw_onion(), esrv_update_item(), pshop.Expire(), entry.Expire(), find_free_point(), fix_object(), fix_player(), generate_random_map(), lockable_doors.get_attempts(), get_exit_seed(), CFWorld.getdist(), ship.getState(), rhyzian_amulet.getuserdist(), QuestAdvance.handle(), roll-o-matic.handle_move(), python.handle_time(), hiscore_check(), jump(), manor.kaptel_death(), CFLog.CFLog.kick_update(), CFWorld.loc_from_ob(), CFLog.CFLog.login_update(), main(), make_doors(), map2_add_ob(), map_gen_spiral(), QuestConditionalDrop.matches(), monster_do_living(), combat_chicken.move_chicken(), farnass.move_cook(), lursendis.move_gourmet(), rolanda.move_to_chair(), CFLog.CFLog.muzzle_update(), new_player_cmd(), powerbroker.pay(), CFGuilds.CFGuild.pay_dues(), HouseofHealing.player_status(), random_roll64(), CFGuilds.CFGuild.remove_demerits(), eliza.eliza.respond(), set_dragon_name(), SP_level_spellpoint_cost(), CFDialog.Dialog.speak(), powerbroker.stock(), tailor_readable_ob(), tear_down_wall(), CFCampfire.CFCampfire.timer(), QuestTriggerConnect.trigger(), CFGuilds.CFGuildHouses.update_points(), while(), manor.white_challenge(), dragon.world_map_coord(), yy_get_next_buffer(), yy_get_previous_state(), yy_push_state(), yy_scan_buffer(), and yy_try_NUL_trans().

◆ magicmap

list make_face_from_files.magicmap = []

Definition at line 60 of file make_face_from_files.py.

◆ nargs

make_face_from_files.nargs

Definition at line 29 of file make_face_from_files.py.

◆ out

◆ parser

make_face_from_files.parser
Initial value:
1 = argparse.ArgumentParser(description="Copy a sequence of files to Crossfire faces, adequately named. Also "
2  "generate the .face file.\nFiles are supposed to be ordered by direction "
3  "then animation frame, that is the second file is direction 2, "
4  "the 9th the second frame of direction 1's animation.\nNo check on whether "
5  "the files are actually valid PNG files or not is done.")

Definition at line 24 of file make_face_from_files.py.

Referenced by inja::Environment.load_file(), inja::Environment.parse(), and inja::Environment.parse_template().

◆ required

make_face_from_files.required

Definition at line 31 of file make_face_from_files.py.

Referenced by command_cast_spell().

◆ str

make_face_from_files.str

Definition at line 30 of file make_face_from_files.py.

Referenced by account_check_string(), add_refcount(), add_string(), bitstostring(), build_stringlist(), cf_add_string(), cf_find_string(), cf_free_string(), cf_map_find_by_archetype_name(), cf_re_cmp(), cf_strdup_local(), cfapi_map_create_path(), cfapi_object_cast(), cfapi_object_find_archetype_inside(), cfapi_system_add_string(), cfapi_system_directory(), cfapi_system_find_string(), cfapi_system_re_cmp(), cfapi_system_remove_string(), lursendis.check_plate(), check_split_string(), manor.claim_reward(), command_setgod(), nlohmann::detail::external_constructor< value_t::string >.construct(), Crossfire_Object_CastAbility(), crypt_string(), decode_number(), sunnista.do_absorb(), python.do_attr(), banquet.do_banquet(), greet_message.do_enemy(), do_throw(), guild_dues.GuildDues.do_withdraw(), Utils.endsWith(), entry.Expire(), find_string(), free_string(), rhyzian_amulet.gettext(), lockable_doors.handle_lockpick(), hashstr(), init_renderer_env(), JSON_decode(), jump(), CFLog.CFLog.last_login(), CFDataFile.CFDataFile.make_file(), CFDialog.Dialog.matchConditions(), combat_chicken.move_chicken(), farnass.move_cook(), lursendis.move_gourmet(), new_shared_string(), object_find_by_name_global(), object_present_in_ob_by_name(), CFDataFile.CFDataFile.putData(), query_refcount(), re_cmp(), re_cmp_step(), rolanda.search_chair(), set_move(), ship.setTimer(), ship.setValue(), shop_inventory_type_apply(), split_string(), roll-o-matic.start_move(), stringbuffer_append_string(), stringbuffer_finish_shared(), nlohmann::detail::lexer< BasicJsonType, InputAdapterType >.strtof(), CFCampfire.CFCampfire.timer(), transport_type_apply(), roll-o-matic.try_move(), manor.white_challenge(), wildcard_match(), nlohmann::detail::output_string_adapter< CharType, StringType >.write_character(), and nlohmann::detail::output_string_adapter< CharType, StringType >.write_characters().

◆ True

make_face_from_files.True

Definition at line 31 of file make_face_from_files.py.

◆ type

make_face_from_files.type

Definition at line 30 of file make_face_from_files.py.