Add Empire Mission 3
Bug #1687542 reported by
hessenfarmer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
This is created to show the different possibilities how to implement a graphical objective and send it to the user. The goal is that the image is permanently visible to the player until the objective is done.
1st alternative:
message_box.png is how the pic is added to a campaign message box
message.png is a message send to p1 to have the pic permanently visible in his messages
second alternative:
objective_
objective_window ist the same objective shown in objectives window.
I like second alternative best but want to hear your opinions
Related branches
lp:~widelands-dev/widelands/empire-mission-3
- GunChleoc: Approve
-
Diff: 1560 lines (+1400/-6)17 files modified.tx/config (+6/-0)
data/campaigns/campaigns.conf (+5/-0)
data/campaigns/emp01.wmf/scripting/mission_thread.lua (+2/-2)
data/campaigns/emp02.wmf/elemental (+1/-1)
data/campaigns/emp02.wmf/scripting/mission_thread.lua (+0/-1)
data/campaigns/emp03.wmf/elemental (+13/-0)
data/campaigns/emp03.wmf/objective (+4/-0)
data/campaigns/emp03.wmf/player_names (+16/-0)
data/campaigns/emp03.wmf/player_position (+6/-0)
data/campaigns/emp03.wmf/port_spaces (+13/-0)
data/campaigns/emp03.wmf/scripting/helper_functions.lua (+117/-0)
data/campaigns/emp03.wmf/scripting/init.lua (+21/-0)
data/campaigns/emp03.wmf/scripting/mission_thread.lua (+390/-0)
data/campaigns/emp03.wmf/scripting/starting_conditions.lua (+144/-0)
data/campaigns/emp03.wmf/scripting/texts.lua (+647/-0)
data/campaigns/emp03.wmf/version (+11/-0)
data/scripting/messages.lua (+4/-2)
summary: |
- show pictures in missionobjectives + Add Empire Mission 3 |
Changed in widelands: | |
status: | New → In Progress |
importance: | Undecided → Wishlist |
assignee: | nobody → hessenfarmer (stephan-lutz) |
milestone: | none → build20-rc1 |
tags: | added: campaign |
Changed in widelands: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
I'm getting a segfault - last few saves attached.
Thread 1 "widelands" received signal SIGSEGV, Segmentation fault. :LuaEconomy: :ware_target_ quantity ( mission- 3/src/scripting /lua_map. cc:3400 permanent) ; :LuaEconomy: :ware_target_ quantity ( mission- 3/src/scripting /lua_map. cc:3400 dispatch< LuaMaps: :LuaEconomy, LuaMaps: :LuaEconomy> (L=0x748d078) mission- 3/src/scripting /luna_impl. h:175 mission- 3/src/third_ party/eris/ ldo.c:360 mission- 3/src/third_ party/eris/ lvm.c:1116 mission- 3/src/third_ party/eris/ ldo.c:550 mission- 3/src/third_ party/eris/ ldo.c:643 ected (L=0x748d078, mission- 3/src/third_ party/eris/ ldo.c:142 mission- 3/src/third_ party/eris/ ldo.c:657 :resume (this=0x9498cc0) mission- 3/src/scripting /lua_coroutine. cc:80 :CmdLuaCoroutin e::execute (this=0xadaba10, game=...) mission- 3/src/logic/ cmd_luacoroutin e.cc:42 :CmdQueue: :run_queue (this=0x7ffffff fa180, interval=750, time_var= @0x7fffffff9fb8 : 14710745) at empire- mission- 3/src/logic/ cmd_queue. cc:123 :Game:: think (this=0x7ffffff f9fb0) mission- 3/src/logic/ game.cc: 555 ::think (this=0x379ea50) mission- 3/src/wui/ interactive_ base.cc: 334 er::think (this=0x379ea50) mission- 3/src/wui/ interactive_ player. cc:128 mission- 3/src/ui_ basic/panel. cc:458 mission- 3/src/ui_ basic/panel. cc:183 :run<UI: :Panel: :Returncodes> (this=0x379ea50) mission- 3/src/ui_ basic/panel. h:96 :Game:: run (this=0x7ffffff f9fb0, loader_ ui=0x7fffffff9c d0, game_type= Widelands: :Game:: Loaded, script_to_run="", replay=false, prefix_ for_replays= "single_ player" ) mission- 3/src/logic/ game.cc: 525 :Game:: run_load_ game (this=0x7ffffff f9fb0, filename= "save/wl_ autosave_ 00.wgf" , script_to_run="") mission- 3/src/logic/ game.cc: 382 :load_game (this=0x1a20cf0) mission- 3/src/wlapplica tion.cc: 1275 :mainmenu_ singleplayer (this=...
0x0000000001235852 in LuaMaps:
this=0x4fce770, L=0x748d078)
at empire-
3400 lua_pushinteger(L, quantity.
(gdb) backtrace
#0 0x0000000001235852 in LuaMaps:
this=0x4fce770, L=0x748d078)
at empire-
#1 0x000000000127046b in method_
at empire-
#2 0x00000000012f5afc in luaD_precall (L=0x748d078, func=0x9524ef0,
nresults=1)
at empire-
#3 0x0000000001312c48 in luaV_execute (L=0x748d078)
at empire-
#4 0x00000000012f6311 in unroll (L=0x748d078, ud=0x0)
at empire-
#5 0x00000000012f6667 in resume (L=0x748d078, ud=0x7fffffff929c)
at empire-
#6 0x00000000012f50d0 in luaD_rawrunprot
f=0x12f64be <resume>, ud=0x7fffffff929c)
at empire-
#7 0x00000000012f66e4 in lua_resume (L=0x748d078, from=0x0, nargs=0)
at empire-
#8 0x00000000011691ce in LuaCoroutine:
at empire-
#9 0x0000000000f38432 in Widelands:
at empire-
#10 0x0000000000f39c03 in Widelands:
game_
#11 0x0000000000e16cdb in Widelands:
at empire-
#12 0x000000000106b292 in InteractiveBase
at empire-
#13 0x000000000108343d in InteractivePlay
at empire-
#14 0x0000000000fc20f1 in UI::Panel::do_think (this=0x379ea50)
at empire-
#15 0x0000000000fc16e9 in UI::Panel::do_run (this=0x379ea50)
at empire-
#16 0x0000000000cf4c5a in UI::Panel:
at empire-
#17 0x0000000000e1699c in Widelands:
start_
at empire-
#18 0x0000000000e15d34 in Widelands:
at empire-
#19 0x0000000000cef165 in WLApplication:
at empire-
#20 0x0000000000cee1a3 in WLApplication: