Could someone update the Create guides?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Could someone update the Create guides?
I'm not sure if this is the right section to post this, but the guides to create scenarios and campaigns mostly say that they are outdated. Could someone update them, or is the information in them still fully relevant?
Last edited by fredbobsmith2 on November 29th, 2011, 5:40 am, edited 1 time in total.
-
- Posts: 427
- Joined: May 10th, 2011, 7:20 pm
Re: Could someone update the Create guides?
Most of those guides aren't that much out of date. Just try it, and if you need help, come to the forums!
Timshel
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Okay then I'll start with: why is it that in the mainline campaigns, at the top of the _main file, inside the textdomain section, there is nothing say path="something" but in the guide it says to have one there? The path= part is at the bottom of the mainline campaign file in a different tag.
Re: Could someone update the Create guides?
Yes. Mainline campaigns get their translations from the same directory where the game gets its own, which is not the same as UMC.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
In that case, is it a good idea to try an learn the syntax from a mainline campaign, or should I download a use-made campaign? Or does it not matter aside from the _main file?
For the binary pathing thing, do I need to have that then? And is it necessary to have the translations?
What does it take to display the campaign in the campaign list? I've mostly finished the _main file but I don't see the campaign there.
And should I make another thread for all these questions?
For the binary pathing thing, do I need to have that then? And is it necessary to have the translations?
What does it take to display the campaign in the campaign list? I've mostly finished the _main file but I don't see the campaign there.
And should I make another thread for all these questions?
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Could someone update the Create guides?
I am not sure what (if anything) would be different, but generally the closer an example is to what you are actually making, the better.
A really good UMC campaign that you could download as an example is A Simple Campaign, since it was made essentially as a tutorial and has comments explaining different parts of the code.
/broken_record
Also, one thread is preferable if you think you are going to have a lot of questions and/or simple questions. If you think that you will only have a few questions, then multiple threads is fine.
A really good UMC campaign that you could download as an example is A Simple Campaign, since it was made essentially as a tutorial and has comments explaining different parts of the code.
/broken_record
Also, one thread is preferable if you think you are going to have a lot of questions and/or simple questions. If you think that you will only have a few questions, then multiple threads is fine.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Thanks! I'll be constantly spamming this thread to ask my questions then.
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Okay so I'll start writing in this thread now, starting with this problem:
So I've been working on a campaign, and I've gotten the _main file and the first scenario almost working. However, as the opening dialog of the first scenario ends, I get the error:
Could not save the game. Please save the game manually.save_game_failed: Could not write to file
I can't tell what would cause this problem. Help?
Also, I asked this in another thread, but how do you get rid of the blank space on the right-hand side of the difficulty selection menu? I use the following code:
So I've been working on a campaign, and I've gotten the _main file and the first scenario almost working. However, as the opening dialog of the first scenario ends, I get the error:
Could not save the game. Please save the game manually.save_game_failed: Could not write to file
Code: Select all
[scenario]
id=01_The_First_Task
name = _"The First Task"
next_scenario = 02_Unexpected_Guests
victory_when_enemies_defeated = yes
map_data = "{~add-ons/Journey_to_the_West/maps/01_The_First_Task.map}"
{DEFAULT_SCHEDULE}
{TURNS 26 24 22}
{SCENARIO_MUSIC "heroes-rite.ogg"}
[side]
type=Sergeant
id=Alderad
name= _"Alderad"
unrenamable=yes
side=1
canrecruit=yes
controller=human
recruit=Spearman, Bowman, Cavalryman
{GOLD 250 200 150}
team_name=loyalists
user_team_name=_"Loyalists"
[unit]
id=Garenoth
name= _ "Garenoth"
unrenamable=yes
type=Fencer
side=1
x=28
y=7
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
[/unit]
[unit]
id=Aethyrvan
name= _ "Aethyrvan"
unrenamable=yes
type=Javelineer
side=1
x=27
y=6
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
[/unit]
[/side]
[side]
type=Bandit
id=Jarsa_Unak
name= _"Jarsa Unak"
side=2
canrecruit=yes
controller=ai
recruit=Thug, Footpad, Poacher
gold=100
team_name=bandits
user_team_name=_"Bandits"
[/side]
[side]
type=Outlaw
id=Jarsa_Matha
name= _"Jarsa Matha"
side=3
canrecruit=yes
controller=ai
recruit=Thug, Thief, Poacher
gold=100
team_name=bandits
user_team_name=_"Bandits"
[/side]
[event]
name = start
[message]
speaker=Aethyrvan
message=_"Hail, Prince Alderad! Did the king send you to help us?"
[/message]
[message]
speaker=Alderad
message=_"Yes, are you the captain of the guard here?"
[/message]
[message]
speaker=Aethyrvan
message=_"I am."
[/message]
[message]
speaker=Alderad
message=_"Right then. I'll be taking command of the outpost until we've driven these bandits off. What's the situation here?"
[/message]
[message]
speaker=Aethyrvan
message=_"We've been defending the city for a few days now. Some of the bandits have been defeated, but there are still a few more encampments of them."
[/message]
[message]
speaker=Jarsa_Unak
message=_"Haha, looks like the young prince is here to fight us! Men, let's show the king that we're not scared of him!"
[/message]
[message]
speaker=Garenoth
message=_"Don't worry, sir, I've got your back."
[/message]
[message]
speaker=Alderad
message=_"I know you do Gare, you always have."
[/message]
[objectives]
[objective]
description= _ "Defeat the enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Alderad"
condition=lose
[/objective]
[objective]
description= _ "Death of Garenoth"
condition=lose
[/objective]
[objective]
description= _ "Death of Aethyrvan"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
[/objective]
[/objectives]
[/event]
[event]
name=last breath
[filter]
id=Jarsa_Unak
[/filter]
[message]
speaker=unit
message= _ "Argh!"
[/message]
[/event]
[event]
name=last breath
[filter]
id=Jarsa_Matha
[/filter]
[message]
speaker=unit
message= _ "Killed by this whelp and his men..."
[/message]
[/event]
[event]
name=last breath
[filter]
id=Alderad
[/filter]
[message]
speaker=unit
message= _ "No! Father will be ashamed..."
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=last breath
[filter]
id=Garenoth
[/filter]
[message]
speaker=unit
message= _ "I've failed to protect the prince..."
[/message]
[message]
speaker=Alderad
message= _ "Nooo! Gare!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=last breath
[filter]
id=Aethyrvan
[/filter]
[message]
speaker=unit
message= _ "Who will lead the troops now...?"
[/message]
[message]
speaker=Alderad
message= _ "Blast it"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[/scenario]
Also, I asked this in another thread, but how do you get rid of the blank space on the right-hand side of the difficulty selection menu? I use the following code:
Code: Select all
difficulty_descriptions = {MENU_IMG_TXT "units/human-loyalists/sergeant-idle-4.png~RC(magenta>red)" _"Easy"} + ";*" + {MENU_IMG_TXT "units/human-loyalists/lieutenant-attack-sword-1.png~RC(magenta>red)" _"Normal"} + ";" + {MENU_IMG_TXT "units/human-loyalists/general-leading.png~RC(magenta>red)" _"Hard"}
Re: Could someone update the Create guides?
Nothing obvious jumps out at me, it doesn't look like a complicated scenario. The only odd thing I see is the spaces in your keys, for example:
name = _"The First Task"
or
[event]
name = start
I would have written:
name= _"The First Task"
and
[event]
name=start
Whitespace and carriage-return sometimes matter, I'm not sure if it does in this case, but it would be simple for you to check.
name = _"The First Task"
or
[event]
name = start
I would have written:
name= _"The First Task"
and
[event]
name=start
Whitespace and carriage-return sometimes matter, I'm not sure if it does in this case, but it would be simple for you to check.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Hmm, I didn't know that...I just thought that the code was written funny (I take programming in school, we're always taught to space things out), but I guess white space matters here. I'll try it and see what happens.
Re: Could someone update the Create guides?
That doesn't sound like anything to do with the scenario, really. Can you save manually, then, or do you get some kind of an error?fredbobsmith2 wrote:Okay so I'll start writing in this thread now, starting with this problem:
So I've been working on a campaign, and I've gotten the _main file and the first scenario almost working. However, as the opening dialog of the first scenario ends, I get the error:
Could not save the game. Please save the game manually.save_game_failed: Could not write to file
Most likely you can't. That's the minimum width required by the dialog because of the Ok and Cancel buttons, and the menu simply fills all the available horizontal space. If it didn't, then there'd be a blank space next to the menu.fredbobsmith2 wrote:Also, I asked this in another thread, but how do you get rid of the blank space on the right-hand side of the difficulty selection menu? I use the following code:
Code: Select all
difficulty_descriptions = {MENU_IMG_TXT "units/human-loyalists/sergeant-idle-4.png~RC(magenta>red)" _"Easy"} + ";*" + {MENU_IMG_TXT "units/human-loyalists/lieutenant-attack-sword-1.png~RC(magenta>red)" _"Normal"} + ";" + {MENU_IMG_TXT "units/human-loyalists/general-leading.png~RC(magenta>red)" _"Hard"}
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Hmm. When I try to save manually, I get an odd line of text in the input box. It goes something like:
JttW ....name of savef ... Turn 1
Do I need to put in a name for savefiles?
JttW ....name of savef ... Turn 1
Do I need to put in a name for savefiles?
Re: Could someone update the Create guides?
No, it automatically uses the name of the scenario for the savefile name. And there's nothing strange about the name, so it shouldn't cause any problems.
You can of course post the whole campaign as an attachment, at which point someone will likely be able to figure it out.
You can of course post the whole campaign as an attachment, at which point someone will likely be able to figure it out.
-
- Posts: 50
- Joined: October 23rd, 2010, 1:57 am
Re: Could someone update the Create guides?
Here are the _main and the first scenario, the only files I have so far aside from the map for the first scenario.
I'm wondering, does this have anything to do with the textdomain tags? I don't have one in any of my files, because I thought they were only used for the purposes of translations.
I'm wondering, does this have anything to do with the textdomain tags? I don't have one in any of my files, because I thought they were only used for the purposes of translations.
- Attachments
-
- 01_The_First_Task.cfg
- (4.88 KiB) Downloaded 103 times
-
- _main.cfg
- (1.02 KiB) Downloaded 123 times
Re: Could someone update the Create guides?
Spaces don't matter; line breaks do.fredbobsmith2 wrote:... but I guess white space matters here.