Własne komunikaty w grze

Wszystko o szeroko pojętej działalności Fanów gry: mapy, programy, tłumaczenia...

Moderatorzy: kuba11100, The Viking, Moderatorzy

Awatar użytkownika
Ivan
Użytkownik Forum
Posty: 31
Rejestracja: 01 wrz 2007, 19:05

Własne komunikaty w grze

Odpowiedz z cytatem

Post autor: Ivan »

Na forum przeczytałem, że do napisanych przez siebie misji nie można dodawać własnych komunikatów. Chciałbym wiedzieć dlaczego, albo o co dokładnie chodzi. Czy takie komunikaty nie wystarczyłyby?
Obrazek
Pablo1517
Użytkownik Forum
Posty: 74
Rejestracja: 31 sie 2007, 22:25

Odpowiedz z cytatem

Post autor: Pablo1517 »

być moze komunikaty są zapisane w pliku exe gry i można się do nich tylko odwoływać za pomocą odpowiedniego id wiadomości, dlatego nie można pisać własnych komunikatów...

EDIT:
Hoho, powiesz nam jak to zrobiłeś? Czy będziesz kręcił, że wiem ale nie powiem bo to fotomontaż xD?
Awatar użytkownika
The Dark Lord
Użytkownik Forum
Posty: 331
Rejestracja: 27 cze 2007, 17:33

Odpowiedz z cytatem

Post autor: The Dark Lord »

I see in the message a different text than usual. Did you edit the message, or edit the picture?
Kheli
Administrator Forum
Administrator Forum
Posty: 3391
Rejestracja: 03 wrz 2005, 11:20
Lokalizacja: Gdańsk
Kontakt:

Odpowiedz z cytatem

Post autor: Kheli »

No proszę, panie Ivanie. Zadziwiłeś samego mistrza. Gratulacje. :)
Awatar użytkownika
Ivan
Użytkownik Forum
Posty: 31
Rejestracja: 01 wrz 2007, 19:05

Odpowiedz z cytatem

Post autor: Ivan »

Pablo1517 have the right, but no exacly exe
This magic file is \data\misc\text.lib there are all words and sentences in the game. Just open it in notepad, or better notepad++. That is all.
When you create Your own company You just should add this file too.
PS. In file \data\misc\setup.lib are rest of sentences (from interface).

Pablo1517 ma rację ale nie dokładnie exe
Ten magiczny plik to \data\misc\text.lib tam są wszystkie słowa i zdania w grze. Wystarczy go otworzyć w notatniku lub lepiej Notepad++. To wszystko. Kiedy tworzysz swoją własną kampanię mógłbyś także dodać ten plik.
PS. W pliku \data\misc\setup.lib\ są pozostałe wyrażenia (z interfejsu).
All Regards
Awatar użytkownika
The Dark Lord
Użytkownik Forum
Posty: 331
Rejestracja: 27 cze 2007, 17:33

Odpowiedz z cytatem

Post autor: The Dark Lord »

Ivan pisze:Pablo1517 have the right, but no exacly exe
This magic file is \data\misc\text.lib there are all words and sentences in the game. Just open it in notepad, or better notepad++. That is all.
When you create Your own company You just should add this file too.
PS. In file \data\misc\setup.lib are rest of sentences (from interface).
I did already know about the setup.lib, because a Dutch guy made an editor for it (only for TSK, unfortunately), but I didn't know you can just open it with notepad! So easy... :lol:
Thanks. ;)
Awatar użytkownika
The Dark Lord
Użytkownik Forum
Posty: 331
Rejestracja: 27 cze 2007, 17:33

Odpowiedz z cytatem

Post autor: The Dark Lord »

Well I've tried to change a message, but the game crashed when it came. Do you know how that is possible?
Awatar użytkownika
Ivan
Użytkownik Forum
Posty: 31
Rejestracja: 01 wrz 2007, 19:05

Odpowiedz z cytatem

Post autor: Ivan »

Yes because when you modify file in notepad then numbers of lines are change and then crash. If you edit file in Notepad++ then it's ok.
True is that extension lib mean static library, it's mean not just text. It's hex code (for instance 00 FF B4...etc). Notepad only change this numers on suitable chars. Notepad++ masks some chars protected numbers of lines.
That really it's not exacly that, but this explain is best what can I give you now.
Notepad++ marks empty char 00 as NUL
It's mean each sentence is separate from other by NUL
Ostatnio zmieniony 02 wrz 2007, 12:53 przez Ivan, łącznie zmieniany 3 razy.
Pablo1517
Użytkownik Forum
Posty: 74
Rejestracja: 31 sie 2007, 22:25

Odpowiedz z cytatem

Post autor: Pablo1517 »

Damn Ivan, please try learning some more english becouse you spell a lot of words wrong, and sometimes it is hard to understand ;) peace.
Awatar użytkownika
The Dark Lord
Użytkownik Forum
Posty: 331
Rejestracja: 27 cze 2007, 17:33

Odpowiedz z cytatem

Post autor: The Dark Lord »

Uh, please don't try to learn me anything about codes... I simply don't understand it. :wink:
I will try that Notepad ++, and thanks for your response.

@Pablo1517, I don't mind that his English isn't perfect, as long as I understand it I think it's well enough. ;)
Odpowiedz