Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editor = hell?...
Jehuty Offline
Junior Member

Posts: 8
Threads: 2
Joined: Oct 2010
Reputation: 0
#1
Editor = hell?...

Hi, im french so excuse my bad language :x

well..... i try do make a map, i do a room without any problem
created light, props etc...

il created all files needed for a custom storie and after the 1st problem apear when i tried to do a diary, haha... a diary. god its the 2ns day i try to do this shit

i created an entity (note) drop it on a desk named it note1 and give him a notetext named papier1 (i tried a lot of name but no one work)

after that i added my speech on the lang file:
-------------------------------------
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">C'est ma 1er map.[br]J'espere que vous avez prevu des couches!</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="MyCredits">- Produit par Jehuty -[br][br][br]- SWALLOWED -[br][br][br]J'espere que vous avez aimé!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Diary_papier1_Name1">Mes dernieres notes</Entry>

<Entry Name="Diary_papier1_Text1">blablabla</Entry>
-------------------------------------------------
(i cut it here cause the rest is for the inventory)

but the note alway stay blank... i never seen a editor like this
actually i try to dont kill myself :x

hm, that the 1st problem, now the 2nd one: after passed 2 day on this fuking diary, i tried to door a locked door can be unlocked by a key, its fun! (that what i thinked before start... how fool i am)

i followed the video tutorial on the other website with the guy who speak like an hot potatoe and do all thing in the ch00.hps

i created a key named cle_1 with a subname : cle1
i added information into the extra_french.lang file too, like the diary:

-------------------------------------------------------
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_Cle1">C'est la cle de ma chambre, on est jamais trop prudent...</Entry>
<Entry Name="ItemName_Cle1">Cle de la chambre</Entry>
</LANGUAGE>
------------------------------------------------------
but when i play my map the key stay blank.... (sometime the name apear when i edit my map and change some things (i dont edit the key!!! WTF!!!)


and if by miracle the name apear (that mean the key is recognised i think)
the script file dont work:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddCombineCallback("", "Cle_1", "Porte_1", "usedkeyondoor", true);
}

void usedkeyondoor(string &in asItem, string &in asentity)
{
SetSwingDoorLocked("Porte_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Porte_1", 0, false);
RemoveItem("Cle_1");
}

////////////////////////////


sorry for this huge and disgusting post, but i really need help i think... or i will just give up and never come back :/

(edit: i try a lot of different names for all my entity, and ilooked into "the darkness" for see how he doing, but its exactly the same as me)
thx and bye
10-01-2010, 11:39 PM
Find
Noj Offline
Junior Member

Posts: 11
Threads: 2
Joined: Oct 2010
Reputation: 0
#2
RE: Editor = hell?...

is there catagory end tag?

<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_Cle1">C'est la cle de ma chambre, on est jamais trop prudent...</Entry>
<Entry Name="ItemName_Cle1">Cle de la chambre</Entry>
</CATEGORY>
</LANGUAGE>
10-01-2010, 11:48 PM
Find
Jehuty Offline
Junior Member

Posts: 8
Threads: 2
Joined: Oct 2010
Reputation: 0
#3
RE: Editor = hell?...

yep i cuted the text but they are here
10-01-2010, 11:55 PM
Find
HakePT Offline
Junior Member

Posts: 49
Threads: 1
Joined: Sep 2010
Reputation: 0
#4
RE: Editor = hell?...

You named the note (not diary) paper1 but then in the entry on the lang file you call it papier1...
Fix that and see how it goes.
10-02-2010, 12:07 AM
Find
Jehuty Offline
Junior Member

Posts: 8
Threads: 2
Joined: Oct 2010
Reputation: 0
#5
RE: Editor = hell?...

sorry its a miss type, the name is the subname is the same on the map and lang
10-02-2010, 12:54 AM
Find
HakePT Offline
Junior Member

Posts: 49
Threads: 1
Joined: Sep 2010
Reputation: 0
#6
RE: Editor = hell?...

(10-02-2010, 12:54 AM)Jehuty Wrote: sorry its a miss type, the name is the subname is the same on the map and lang

Place the hole code in a quote here. Without the full file its hard to know whats wrong.
Also use the XMLValidator to check files for errors. If you don't have it search the forum for XML Validator and it should appear.
10-02-2010, 02:11 AM
Find
Noj Offline
Junior Member

Posts: 11
Threads: 2
Joined: Oct 2010
Reputation: 0
#7
RE: Editor = hell?...

are your game language settings are on french?
if there not the fench.lang wont do anything.
10-02-2010, 04:58 AM
Find
Jordo76 Offline
Member

Posts: 57
Threads: 7
Joined: Sep 2010
Reputation: 0
#8
RE: Editor = hell?...

Essaie de mettre une majuscule a Cle (Sur le C bien sur) dans le Language file et met le dans le SubItem aussi
Essaie de mettre la majuscule a Papier dans le language File et le Subitem (Pareil en gros)
Ces deux choses,les majuscules peuvent faire toute la différence,avant pour faire le memento je crashais..je savait pas pourquoi...J'avait pas mit la majuscule...
J'ai au passage corrigé ton code :
Spoiler below!

void OnStart()
{
AddUseItemCallback("door", "Cle_1", "Porte_1", "usedkeyondoor", true);
}

void usedkeyondoor(string &in asItem, string &in asentity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem(asItem);
}

Comme ca tu peut ajouter d'autres portes car la ca n'aurait servi qu'a la clé 1
Pour ajouter un porte et une clé c'est simple :
AddUseItemCallback("door", "Nom de ta clé", "Nom de ta porte", "usedkeyondoor", true);
Dans OnStart()
J'espere que ca t'aidera,demande moi d'autres conseils ou solutions si tu veut ^^
PS : Et verifie que tu as bien ecrit extra_french.lang et verifie que c'est bien un .lang

PS² : Tu as regardé ma map ^^ J'espere que tu l'as jouée et appreciée hein ^^

PS 3 : Oh et verifie surtout que tu as bien écrit les <Entry Name="">,</Entry>,<CATEGORY Name ="">,</CATEGORY>,<LANGUAGE>,</LANGUAGE>

Edit : If you don't understand it's French stuff ^^
10-02-2010, 08:48 AM
Website Find
Jehuty Offline
Junior Member

Posts: 8
Threads: 2
Joined: Oct 2010
Reputation: 0
#9
RE: Editor = hell?...

Merci! je vais essayer ca ^^

Oui j'ai apprécié ta map! même si c'est malheureusement trop court :x
petit stress dans le couloir avec les bougies xD


Apparemment y a un soucis avec le nouveau hps

quand je lance la map ca me met une erreur comme quoi a la ligne 10 le asentity "is not declared"
Edit1: apparemment c'est parce qu'il manquais une majuscule sur le E du 1er entity -_-, un peu casse couille leur systeme, maintenant le code marche!!!

mais la note toujours pas :/
Edit2: Ca marche! en faite voila ce que j'ai changé:
<Entry Name="Diary_papier1_Name1">Mes dernieres notes</Entry>

<Entry Name="Diary_papier1_Text1">blablabla</Entry>

par

<Entry Name="Note_papier1_Name">Mes dernieres notes</Entry>

<Entry Name="Note_papier1_Text">blablabla</Entry>

voila mon msn si jamais: Jonathanfayolle@hotmail.com

sinon on va faire chier les rosbeef :p
10-02-2010, 05:52 PM
Find
Jordo76 Offline
Member

Posts: 57
Threads: 7
Joined: Sep 2010
Reputation: 0
#10
RE: Editor = hell?...

Effectiment si tu met pas le E sur asEntity ca marchera pas ^^
Et pour la note bah,j'avait deja fait ca aussi ^^
En fait si tu avait fait Note_Papier1_Name1 ca aurait marché mais la c'est une Diary alors ca marche pas ^^
Je t'ajoute et je te montre en exclu mes prochaines maps,considère toi chanceux jeune padawan ^^
10-02-2010, 07:05 PM
Website Find




Users browsing this thread: 2 Guest(s)