Search found 1202 matches

by gfgtdf
June 21st, 2013, 10:10 pm
Forum: Scenario & Campaign Development
Topic: Antar, Son of Rheor [Development Thread]
Replies: 401
Views: 74343

Re: Antar, Son of Rheor [Singleplayer Campaign Feedback Thr

well here http://wiki.wesnoth.org/UnitTypeWML#Attacks they say something about an "movement_used" key on attacks, i have never used it but it may work.

to have teh same effect as the former ability, you have to set the moves to 3 if they are lower than 3. in the attack_end event
by gfgtdf
June 21st, 2013, 9:41 pm
Forum: Scenario & Campaign Development
Topic: Antar, Son of Rheor [Development Thread]
Replies: 401
Views: 74343

Re: Antar, Son of Rheor [Singleplayer Campaign Feedback Thr

hey i just played the first scenario (on 11.2) and i liked it. But some parts bother me: 1) in the wmlcode there is some code about new units abilites: [unit] x,y=1,25 type=Lowitz_0 id=Lowitz name= _ "Lowitz" side=1 profile="data/campaigns/Liberty/images/portraits/harper.png" facing=se [modification...
by gfgtdf
June 14th, 2013, 1:03 am
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

Where is problem and how to remove it? well, accrordung to your log it seems that the events are handeled in no time, so it seems like the problem is something else. so idk what the real problem is. since the log dont give any information what happened bewtewen 41:00 and 41:10 you could also try to...
by gfgtdf
June 13th, 2013, 11:09 pm
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

command line aruments, if you are using windwos you righclick the shortcut to wensoth and edit the target in, if you are using another os idk. change
" --config-dir Wesnoth1.11"
into
"--log-debug=event_handler --config-dir Wesnoth1.11"
(10 if you are using version 10)
by gfgtdf
June 13th, 2013, 10:50 pm
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

well idk weather that works in multiplayer, but in singelplayer you could start wesnoth with: "--log-debug=event_handler" parameter, and then check the stderr file if there are tons of "processing event ... with id= ...". if there are veryvery much of them within a very short time than that might ca...
by gfgtdf
June 13th, 2013, 10:30 pm
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

uhm i have never played online muliplayer ^^. i just clicked "muliplayer" (the first time) but there are only two games shown. but since the games becomes faster after you load the game, i assume the reason is, that the "first time only=yes" events aren't deleted, they are just disabled, to the stil...
by gfgtdf
June 13th, 2013, 9:57 pm
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

hm i never used wml excessive (i like lua more), so i have no idea how the size of wml effects the time of the turn initilization. i just took a look at the scenario, but its quite hard because you use a lot of nested events. (most of you events are first_time_only = yes, so it is hard to know wich ...
by gfgtdf
June 13th, 2013, 9:34 pm
Forum: WML Workshop
Topic: Question about WML optimization
Replies: 20
Views: 1849

Re: Question about WML optimization

well you can find out weather the reason for the slowness are the events, by using some [set_variable] time=stamp.. to check how much time these events use. there might also be some actions that are executed on every player turn, you could check weather that causes the slowness by making the player ...
by gfgtdf
June 13th, 2013, 11:35 am
Forum: Scenario & Campaign Development
Topic: Five Fates 1.03, Dungeoncrawl
Replies: 136
Views: 26622

Re: Five Fates 1.0, Dungeoncrawl

i just took a hasty look at your code, and i wonder why you have a "new_turn" event wich uses a very big "set_menu_item" in OPTION_HELPMENU. Normaly you only have to use set_menu_item once, most likely in a start or prestart event. Is there any special reason you use a "new turn" with "first_time_on...
by gfgtdf
June 9th, 2013, 11:46 pm
Forum: Scenario & Campaign Development
Topic: A Scenario with robots
Replies: 36
Views: 12961

Re: A Scenario with robots

uploaded new version with the following changes:
  • added some images/animations
  • fixed a little bug with the spear booster component
  • added 2 difficulcies
  • added the trap dropper + booster comonents
  • removed the "give random items (debug)" option and added an component shop.
by gfgtdf
June 9th, 2013, 3:06 pm
Forum: WML Workshop
Topic: Fonts
Replies: 0
Views: 432

Fonts

hi i thought about using pango-markup, but since the differnt os have different fonts (ye that is an old problem), i wonder weather it is possible to add my own font to my add-on. if yes, how do the gpl restricts wich fonts a can use? if no, is there another way to fix that problem? (sorry if this i...
by gfgtdf
June 4th, 2013, 5:23 pm
Forum: Lua Labs
Topic: wesnoth.current.event_context and enter_hex
Replies: 7
Views: 2491

Re: wesnoth.current.event_context and enter_hex

am its semms it wasn just changes to : if (ev.loc1.valid()) { cfg["x1"] = ev.loc1.filter_x() + 1; cfg["y1"] = ev.loc1.filter_y() + 1; } but as i said said in my second post that would leave no options to access the units actual location and therefor no option to acces the unit in the lua code. becau...
by gfgtdf
June 4th, 2013, 4:32 pm
Forum: Lua Labs
Topic: wesnoth.current.event_context and enter_hex
Replies: 7
Views: 2491

Re: wesnoth.current.event_context and enter_hex

if anyone changes something about that could he please post that in this thread (with the id of the commit? or the code).
by gfgtdf
June 4th, 2013, 4:25 pm
Forum: WML Workshop
Topic: advance event firing more than once?
Replies: 15
Views: 1670

Re: advance event firing more than once?

you you should also post a safefile, that forces that problemif you have one. i have heared about a bug but never encountered it myself.
by gfgtdf
June 3rd, 2013, 5:25 pm
Forum: Lua Labs
Topic: wesnoth.current.event_context and enter_hex
Replies: 7
Views: 2491

Re: wesnoth.current.event_context and enter_hex

they behave differnt becuase: in the (c++) code that generates event_context: if (ev.loc1.valid()) { cfg["x1"] = ev.loc1.x + 1; cfg["y1"] = ev.loc1.y + 1; } if (ev.loc2.valid()) { cfg["x2"] = ev.loc2.x + 1; cfg["y2"] = ev.loc2.y + 1; } the code for the wml variables: if (init_event_vars) { resources...