Forum Tawerny Four Ways
Mount&Blade - Modyfikacje => Modding => Wątek zaczęty przez: Colder w Września 18, 2010, 19:56:17
-
Witam,
zamierzam rozpocząć swoja przygodę z moddingiem do tej gry :P
Mam do Was pytanie, czy można edytować "dialogi" ?
Nie chodzi tutaj o treść ale np o różne warunki z nimi związane, np:
Dialog w którym pytasz się ojca o pozwolenie na spotykanie się z jej córką, i warunek od ilu relacji on na to pozwoli a od ilu nie :)
Pozdrawiam i bardzo przepraszam jeżeli taki temat był :(
Jednak jeżeli nie było, to malutkie podpowiedzi jak to zrobić bardzo by mnie ucieszyły :P
-
Najważniejsze pytanie :
Czy masz Module System, bo bez tego niczego raczej nie zrobisz w tym temacie.
Ja dialogi (tylko teksty) edytuje po prostu w Modules/nazwa modu/languages/pl/dialogs
-
Nie no, nie chodzi mi o tekst :P
Chodzi mi bardziej o taką edycje czegoś co się stanie jak nacisnę w dialogu na opcje 1 albo opcje 2 itd :P
Co do tego programu to nie mam gdyż przed wgłębieniem się w tajniki moddingu m&b chce usłyszeć odpowiedź na nurtujące mnie pytanie ;)
Oczywiście chodzi mi o edycje dialogów w module Navite nie chce robić własnego modu że wszystko od nowa tylko edytować parę warunków ;)
Np takiego jak podałem w 1 poście ;P
Pozdrawiam i dzięki.
-
Spokojnie można zrobić to, o czym piszesz, a i sporo więcej (np. podpinać pod dialogi dźwięki, skrypty, prezentacje...). Możliwości jest naprawdę sporo. Jak załapiesz podstawy "module system", to wszystko stanie przed Tobą otworem. ;)
-
Jeśli nie chcesz zagłębiać się w module system i inne, a nie chcesz jedynie wprowadzić kilka małych zmian dla urozmaicenia gry polecam zajrzeć tu (http://www.mountblade.info/forum/index.php?topic=2413.0) :)
-
Ta, już widzę jak edytuje warunki dialogów podmieniając cyferki systemem "chybił - trafił". :)
-
@Daedalus:
Właśnie teraz o tym czytam ;)
Tylko martwię się jedną rzeczą :/
Mianowicie:
Mogę sobie edytować ten tryb Navite czy muszę od nowa robić swój ?
Jeżeli muszę robić swój własny to czy on będzie po angielsku ?
Gdyż po pobraniu i przyjrzeniu się pliku module_game_menus.py w Module_system 1.131 zauważyłem że dialogi są tak jakby po ENG :/
Pozdrawiam.
Edit:
O nowy post :P
A jest tam coś o momencie podczas rebelii kiedy królestwo upada ;P ?
@Topic:
Ogólnie to nie zamierzam robić żadnego super moda :P
Chciałem tylko znaleźć funkcję + moment.
Funkcję na danie naszemu graczowi pod władanie królestwa ;P
A momentu kiedy królestwo podczas rebelii upada :P
Wtedy dodałbym coś aby można było wybrać że samemu wchodzę na tron a uzupatora wykorzystałem i np - 20 do Honoru, albo normalnie go dać na tron :P
I by było pięknie :(
Gardzę troszkę tym że w Warbandzie da się zrobić swoje królestwo a nie da się przejąć istniejącego :(
Przecież własne królestwo nie ma nawet własnych jednostek, a jestem pewien że większość osób wolałaby mieć we władaniu np Swadie niż robienie od nowa królestwa :P
Edit2:
O jej no znowu nowy post xD
Czyli jednak trzeba robić od nowa ;(
Ale jak to jest z tą wersją PL Eng ?
Pozdrawiam i proszę o rady ;)
-
"Module system" to nic innego jak pliki modułu Native, tyle że przed skompilowaniem. To jest podstawa do modowania. Od Ciebie tylko zależy ile w tym module zmienisz. Czy to będzie jeden znak, czy milion, to już znaczenia nie ma. Ba, możesz nic nie zmieniać, wtedy po skompilowaniu takiego modułu będziesz miał po prostu czysty Native. Podwórko do zabawy jest więc przygotowane, nie będziesz go musiał budować od zera. ;)
Wszystko tu jest po angielsku i nie można stosować polskich znaków. To normalka. Wersje językowe są bowiem robione w formie "nakładki" i działają w pewnym sensie niezależnie od samego modułu. Są jak koszula, gdy moduł gry to gołe ciało. O spolszczenie się nie martw, bo jeśli nie będziesz robił ogromnych zmian w module i dodawał setek nowych tekstów, to oryginalne spolszczenie będzie bez problemu działać.
-
Nic nie edytowałem a mam błędy :(
Initializing...
variables.txt not found. Creating new variables.txt file
Compiling all global variables...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Traceback (most recent call last):
File "process_global_variables.py", line 106, in <module>
save_variables(export_dir, variables,variable_uses)
File "C:\Users\Colder\Desktop\M&B_Mod\Module_system 1.131\process_operations.p
y", line 171, in save_variables
file = open(export_dir + "variables.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/variables.
txt'
Exporting strings...
Traceback (most recent call last):
File "process_strings.py", line 26, in <module>
save_strings(strings)
File "process_strings.py", line 9, in save_strings
ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/strings.tx
t'
Exporting skills...
Traceback (most recent call last):
File "process_skills.py", line 32, in <module>
save_skills()
File "process_skills.py", line 15, in save_skills
ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/skills.txt
'
Exporting tracks...
Traceback (most recent call last):
File "process_music.py", line 23, in <module>
save_tracks()
File "process_music.py", line 15, in save_tracks
file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/music.txt'
Exporting animations...
Traceback (most recent call last):
File "process_animations.py", line 61, in <module>
write_actions(animations,len(action_codes),action_codes,"actions.txt")
File "process_animations.py", line 24, in write_actions
file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/actions.tx
t'
Exporting meshes...
Traceback (most recent call last):
File "process_meshes.py", line 25, in <module>
save_meshes()
File "process_meshes.py", line 9, in save_meshes
ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/meshes.txt
'
Exporting sounds...
Traceback (most recent call last):
File "process_sounds.py", line 51, in <module>
write_sounds(sound_samples, sounds)
File "process_sounds.py", line 13, in write_sounds
ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/sounds.txt
'
Exporting skins...
Traceback (most recent call last):
File "process_skins.py", line 105, in <module>
export_skins(skins)
File "process_skins.py", line 45, in export_skins
ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/skins.txt'
Exporting map icons...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_map_icons.py", line 38, in <module>
save_map_icons(variables,variable_uses,tag_uses,quick_strings)
File "process_map_icons.py", line 9, in save_map_icons
ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/map_icons.
txt'
Exporting faction data...
Traceback (most recent call last):
File "process_factions.py", line 70, in <module>
save_factions(relations)
File "process_factions.py", line 34, in save_factions
file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/factions.t
xt'
Exporting item data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_items.py", line 72, in <module>
write_items(variables,variable_uses,tag_uses,quick_strings)
File "process_items.py", line 19, in write_items
ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/item_kinds
1.txt'
Exporting scene data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_scenes.py", line 77, in <module>
save_scenes(variables,variable_uses,tag_uses)
File "process_scenes.py", line 46, in save_scenes
ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/scenes.txt
'
Exporting troops data
Traceback (most recent call last):
File "process_troops.py", line 107, in <module>
save_troops()
File "process_troops.py", line 13, in save_troops
file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/troops.txt
'
Exporting particle data...
Traceback (most recent call last):
File "process_particle_sys.py", line 61, in <module>
save_particle_systems()
File "process_particle_sys.py", line 29, in save_particle_systems
ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/particle_s
ystems.txt'
Exporting scene props...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_scene_props.py", line 32, in <module>
save_scene_props(variables,variable_uses,tag_uses,quick_strings)
File "process_scene_props.py", line 10, in save_scene_props
ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/scene_prop
s.txt'
Exporting tableau materials data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_tableau_materials.py", line 31, in <module>
save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
File "process_tableau_materials.py", line 11, in save_tableau_materials
ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/tableau_ma
terials.txt'
Exporting presentations...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_presentations.py", line 33, in <module>
save_presentations(variables,variable_uses,tag_uses,quick_strings)
File "process_presentations.py", line 11, in save_presentations
ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/presentati
ons.txt'
Exporting party_template data...
Traceback (most recent call last):
File "process_party_tmps.py", line 46, in <module>
save_party_templates()
File "process_party_tmps.py", line 20, in save_party_templates
file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/party_temp
lates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
File "process_parties.py", line 69, in <module>
save_parties(parties)
File "process_parties.py", line 12, in save_parties
file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/parties.tx
t'
Exporting quest data...
Traceback (most recent call last):
File "process_quests.py", line 30, in <module>
save_quests()
File "process_quests.py", line 9, in save_quests
ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/quests.txt
'
Exporting info_page data...
Traceback (most recent call last):
File "process_info_pages.py", line 26, in <module>
save_info_pages()
File "process_info_pages.py", line 9, in save_info_pages
ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/info_pages
.txt'
Exporting scripts...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_scripts.py", line 40, in <module>
save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
File "process_scripts.py", line 10, in save_scripts
file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/scripts.tx
t'
Exporting mission_template data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_mission_tmps.py", line 64, in <module>
save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
File "process_mission_tmps.py", line 38, in save_mission_templates
file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/mission_te
mplates.txt'
Exporting game menus data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_game_menus.py", line 47, in <module>
save_game_menus(variables,variable_uses,tag_uses,quick_strings)
File "process_game_menus.py", line 22, in save_game_menus
ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/menus.txt'
exporting simple triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_simple_triggers.py", line 24, in <module>
save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
File "process_simple_triggers.py", line 8, in save_simple_triggers
file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/simple_tri
ggers.txt'
exporting triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "process_dialogs.py", line 193, in <module>
save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
File "process_dialogs.py", line 47, in save_triggers
file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/triggers.t
xt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
File "process_postfx.py", line 27, in <module>
write_postfx_params(postfx_params)
File "process_postfx.py", line 13, in write_postfx_params
ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/postfx.txt
'
______________________________
Script processing has ended.
Press any key to exit. . .
O co może chodzić :(
Dodam że mam Windows 7
Edi1:
Kurcze, szukam moim pro elo programem we wszystkich plikach jakiegoś zwrotu po ENG "Upada" itd aby znaleźć miejsce gdzie jest coś o tym kiedy wywołuję się napis " Królestwo Swadii ogłasza upadek" ale nic nie mogę znaleźć :/
Edit2:
Sprytnie znalazłem takie coś :P
qstr_{s5}_has_been_defeat|{s5} ogłasza upadek!
Byłem pewny że jak wyszukam:
has_been_defeat
To coś znajdę, a tu nic :/
Ma ktoś jakiś pomysł :(
-
Błędy wyskakują, bo nie podałeś w pliku module_info prawidłowej ścieżki do Twojego nowego modułu. Skopiuj sobie cały folder Native, nazwij np. Modzik i w module_info wpisz dokładną ścieżkę do "Modzika". Ewentualnie (znacznie lepszy i wygodniejszy sposób) utwórz w katalogu "Modzika" podkatalog, do którego przekopiujesz wszystkie pliki "module system". Wtedy wystarczy, że w module_info wpiszesz:
export_dir = "../"
Wszystko będzie się od razu kompilować do nadrzędnego folderu, czyli prosto do "Modzika".
Co do szukania, to spróbuj zamiast znaków _ wstawić spację. ;) Polecam też program Notepad++. Idealnie się bowiem nadaje do edycji "module system" i też może wyszukiwać danego tekstu jednocześnie we wszystkich plikach modułu.
-
Ok dzięki :P
Mam jeszcze takie pytanko, jest gdzieś spis wszystkich funkcji + ich znaczenie ?
A teraz jeszcze jedną sprawę ;P
(else_try),
(is_between, ":faction_no", kingdoms_begin, kingdoms_end),
(faction_slot_eq, ":faction_no", slot_faction_state, sfs_defeated),
(try_begin),
(eq, ":note_index", 0),
(str_store_faction_name, s5, ":faction_no"),
(str_store_string, s0, "@{s5} has been defeated!", 0),
(set_trigger_result, 1),
(else_try),
(eq, ":note_index", 1),
(str_clear, s0),
(set_trigger_result, 1),
(try_end),Znalazłem takie coś ale niestety to jest tylko jakby komunikat dla gracza a nie moment.
Liczyłem że będzie coś takiego jak podałem plus jakiś warunek "Jeżeli masz misję z uzupatorem to" no i wtedy te bla bla bla że nam się udało, a tu takiego czegoś nie ma :(
Nie chcę prosić o gotowca, ale bardzo gorąco proszę o jakieś rady :P
Edit1:
Mam plan!
Wiecie może jak zmienić wersję językową z pl na eng ?
-
Edit1:
Mam plan!
Wiecie może jak zmienić wersję językową z pl na eng ?
Yyyy w starterze, po wybraniu opcji "Skonfiguruj" w zakładce "Gra"?
-
Ok dzięki :P
Mam jeszcze takie pytanko, jest gdzieś spis wszystkich funkcji + ich znaczenie ?
Spis wszystkich operacji oraz ich działanie jest w header_operations.py pamiętaj, aby nic nie zmieniać w tym "świętym" pliku!
(else_try),
(is_between, ":faction_no", kingdoms_begin, kingdoms_end),
(faction_slot_eq, ":faction_no", slot_faction_state, sfs_defeated),
(try_begin),
(eq, ":note_index", 0),
(str_store_faction_name, s5, ":faction_no"),
(str_store_string, s0, "@{s5} has been defeated!", 0),
(else_try),
(eq, ":note_index", 1),
(str_clear, s0),
(set_trigger_result, 1),
(try_end),
Ten kod sprawdza czy frakcje istnieją, jeśli nie to wywala tekst, że dana frakcja została pokonana.
-
A, nawet nie wiedziałem :P
Ale znalazłem :D
(
"notification_rebels_switched_to_faction",0,
"Rebellion Success^^ Your rebellion is victorious! Your faction now has the sole claim to the title of {s11}, with {s12} as the single ruler.",
"none",
[
(str_store_faction_name, s11, "$g_notification_menu_var1"),
(str_store_troop_name, s12, "$g_notification_menu_var2"),
(set_fixed_point_multiplier, 100),
(position_set_x, pos0, 65),
(position_set_y, pos0, 30),
(position_set_z, pos0, 170),
(try_begin),
(is_between, "$g_notification_menu_var1", "fac_kingdom_1", kingdoms_end), #Excluding player kingdom
(set_game_menu_tableau_mesh, "tableau_faction_note_mesh_for_menu", "$g_notification_menu_var1", pos0),
(else_try),
(set_game_menu_tableau_mesh, "tableau_faction_note_mesh_banner", "$g_notification_menu_var1", pos0),
(try_end),
],
[
("continue",[],"Continue...",
[
(assign, "$talk_context", tc_rebel_thanks),
(start_map_conversation, "$g_notification_menu_var2", -1),
(change_screen_return),
]),
]
),
Tylko teraz myślę gdzie tu jest funkcja usuwająca starego króla i dająca uzupatorowi władzę...
Dzięki za dotychczasową pomoc ;)
-
Tu nie ma nic na ten temat. To tylko menu oznajmiające tę wiadomość. Chociaż całość może być w dialogu z pretendentem, który uruchamia się po kliknięciu na "Continue..."
(assign, "$talk_context", tc_rebel_thanks),
(start_map_conversation, "$g_notification_menu_var2", -1),
(change_screen_return),
Chociaż wątpię w to i stawiam na to, że to dzieje się w wcześniej w skrypcie, który jednocześnie uruchamia to menu.
-
Ajajaj to niedobrze :/
A jest jakaś funkcja albo coś podobnego która daje króla jakiegoś królestwa ?
Bo jak na to patrze to chyba nici z mojego planu :(