Jump to content


Photo

Help with str file


  • Please log in to reply
18 replies to this topic

#1 fazza

fazza
  • New Members
  • 31 posts

Posted 22 January 2006 - 08:03 PM

i am editing pippins ini and changed the display name from

something like this

displayname=OBJECTROHANPIPPIN

to

displayname=OBJECTFazza

and im also changing the string file from

OBJECTROHANPIPPIN
text"Pippin"

And i changed it to

OBJECTROHANPIPPIN
text"Fazza"


but in game it comes up with recruit

MISSING OBJECT FAZZA

how do i get it so it just says Fazza?

pls help me out guys

#2 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 22 January 2006 - 08:29 PM

First, some suggestions:

- Never name your topics "Help" or use capitals

- If you you're having coding problems then post your codes with the "CODE" option of the board. And post the real codes not what you can remember or examples with "something like"

Okay, to your problem... I presume you have done it in the right form and not 'text"Fazza"' or something like that...

Now if you change the reference in the inis (e.g. to 'OBJECT:Fazza') then you need to change the entry in the str too, so it would look like that:

OBJECT:Fazza
"Fazza"
END

Displayname = OBJECT:Fazza

Edited by Dark Lord of the Sith, 22 January 2006 - 08:30 PM.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#3 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 22 January 2006 - 09:38 PM

yes, this line:

displayname=OBJECTFazza

is completely useless in your code
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#4 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 04:26 PM

Its Fazza again.I give your advice a try but it still said missing object fazza mabye im doin something wrong. this is the exact code i put in from my pippin.ini

DisplayName = OBJECT:Fazza
	RecruitText = CONTROLBAR:Fazza
	ReviveText	= CONTROLBAR:RohanPippinRevive
	Hotkey  = CONTROLBAR:Fazza

do i need to something else with that..

This is my exact str.file


CONTROLBAR:Fazza
"Fazza"
END

CONTROLBAR:RohanPippinRevive
"Revive the fallen Hero, Fazza"
END

CONTROLBAR:Fazza
"&Fazza"
END

do i need to do anything with that?



oh yeah and the post isnt all in caps and i only put help mabye cause i need it what else you want me to put in cheescake?

anyways can you guyys help me with my problems?

#5 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 23 January 2006 - 04:53 PM

this is in your pippin code:

DisplayName = OBJECT:Fazza

and this, you say, is your str file:

CONTROLBAR:Fazza
"Fazza"
END

CONTROLBAR:RohanPippinRevive
"Revive the fallen Hero, Fazza"
END

CONTROLBAR:Fazza
"&Fazza"
END

you really can't see what's missing?
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#6 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 04:59 PM

No. pls tell instead of teasing pls its very childish. I am a new modder and want to learn the basics so can you tell me what is missing and give me the code of what i should put pls.

#7 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 05:02 PM

Also i want the name of the hero to be fazza and not missing object fazza

so when i hover my mouse over the citadel it will say recruit fazza and when i cover my mouse over the guys portrait when hes created it says Fazza pls just help me.

#8 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 23 January 2006 - 06:09 PM

you really can't see what's missing?


He meant that you're lacking:

OBJECT:Fazza
"Fazza"
END

Instead of that you have the one with "CONTROLBAR:" twice...


pls tell instead of teasing pls its very childish

I think he wanted you to really look into your code and find the error... actually we try to help you become a modder and not just give you everything...
Wait, what have I just done then ? ;) Hmm, I'm just too kind ^_^

Edited by Dark Lord of the Sith, 23 January 2006 - 06:10 PM.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#9 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 06:21 PM

so what exactly do i do? do i change one of the controllbar thingys to an object?

#10 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 23 January 2006 - 06:23 PM

Actually, yes. If you reference "OBJECT:Fazza" in the ini you have to define "OBJECT:Fazza" and not something else...

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#11 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 06:31 PM

sorry define?

-----------------------------------------------

[2nd message]

aslo those control bar things are not thats in the str all there is aslo a
OBJECT:Fazza
"Fazza"
END

for the display name i refereced in an earlier post if you think thats what i missing becasue im not to make that sure.


chEDIT : merged posts

#12 Joe

Joe

    title available

  • Project Team
  • 886 posts
  • Location:England
  • Projects:Real Life

Posted 23 January 2006 - 07:10 PM

PLEASE use the edit button it looks like this Posted Image

Edited by ned dred, 23 January 2006 - 07:11 PM.

Posted Image
Posted Image
Posted Image

#13 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 23 January 2006 - 07:12 PM

To make you understad this, or why not make it all for you? :p

copy and paste this in your codes ;)

INI
DisplayName = OBJECT:Fazza
	RecruitText = CONTROLBAR:FazzaRecruit
	ReviveText	= CONTROLBAR:FazzaRevive
	Hotkey  = CONTROLBAR:Fazza
STR
OBJECT:Fazza
"Fazza"
END

CONTROLBAR:FazzaRevive
"Revive the fallen Hero, Fazza"
END

CONTROLBAR:FazzaRecruit
"Recruit the pretty hero, Fazza"
END

CONTROLBAR:Fazza
"&Fazza"
END

AS you can see;

DisplayName = OBJECT:Fazza
goes to be
OBJECT:Fazza
"Fazza"
END

RecruitText = CONTROLBAR:FazzaRecruit
goes to be
CONTROLBAR:FazzaRecruit
"Recruit the pretty hero, Fazza"
END

ReviveText = CONTROLBAR:FazzaRevive
goes to be
CONTROLBAR:FazzaRevive
"Revive the fallen Hero, Fazza"
END

Hotkey = CONTROLBAR:Fazza
goes to be
CONTROLBAR:Fazza
"&Fazza"
END

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#14 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 23 January 2006 - 07:21 PM

actually, concerning the hotkey, I'm not sure whether you can define your own.

Cause using the & symbol will highlight the letter, suggesting that this is the hotkey, but I'm not sure if that's enough to just attribute the hotkey to the unit
Software is like sex; it's better when it's free ~Linus Torvald

#15 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 23 January 2006 - 07:25 PM

see here

"&Fazza"

the & make the next letter the hotkey, here, it's the F :p learned it a loong time ago

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#16 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 07:28 PM

Much appriciated Lauri i will try that.

#17 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 07:40 PM

Tried it and still says missing object fazza.
Imust not be doing it right..

Mabye i ts because i dont know where to put my string file
do you put it in the main BFME directory cause thats were i got it now

or do you put it somewhere else such as
Data/Ini and put it in the ini folder? pls tell me people.

#18 fazza

fazza
  • New Members
  • 31 posts

Posted 23 January 2006 - 07:48 PM

I GOT IT TO WOK FINE
i had to change were the str goes. oh and lauri lol liking the the recruit the pretty hero fazza lol dude thanks.

#19 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 23 January 2006 - 08:45 PM

I think he wanted you to really look into your code and find the error... actually we try to help you become a modder and not just give you everything...


yeah, that's exactly what i wanted. i would've given the answer if you guys weren't so quick
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users