1:1 source port of the engine and game code; Windows build and system layer; docs. No game files or SDK headers.

This commit is contained in:
CRTkafa 2026-10-22 16:30:40 +08:00
parent c3b032a45a
commit 0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions

11
tools/port/smoke/demo.txt Normal file
View file

@ -0,0 +1,11 @@
# Demo shots (run without -Dev so no dev bar): map, port, pause window, chocolate factory HUD.
story,click,400,345
map,none
port,click,122,414
town,none
pause,key,Escape
pausewin,none
resume,key,Escape
fac,lua,DisplayDialog{"ui/chocolate_factory.lua", product=_AllProducts["b01"], factory=zur_factory}
fstart,key,Return
factory,wait,5

View file

@ -0,0 +1,31 @@
# Lua-reached screens (CHOC3_LUACMD) plus the pause window and save & quit.
story,click,400,345
port,click,122,414
money,click,755,8
m1,click,755,88
coffee,lua,DisplayDialog{"ui/coffee_factory.lua", product=_AllProducts["c04"], factory=zur_factory}
cstart,key,Return
cplay,wait,5
cfire,click,300,300
cpause,key,Escape
cresume,click,400,403
crest,wait,62
cover,key,Escape
kitchen,lua,DisplayDialog{"ui/ui_kitchen.lua"}
kitchenesc,key,Escape
sign,lua,DisplayDialog{"ui/sign_basic.lua"}
signesc,key,Escape
slots,lua,DisplayDialog{"ui/ui_slotselect.lua"}
slotsesc,key,Escape
pause,key,Escape
opt,click,400,208
optret,key,Return
hs,click,400,253
hsesc,key,Escape
help,click,400,298
helpesc,key,Escape
resume,key,Escape
pause2,key,Escape
mainmenu,click,400,343
quit,click,683,417
quityes,key,Return

View file

@ -0,0 +1,20 @@
# Pause window and its sub-dialogs, ledger medals / quest log, then save and quit through the main menu.
story,click,400,345
port,click,122,414
pause,key,Escape
opt,click,400,208
optret,key,Return
hs,click,400,253
hsesc,key,Escape
help,click,400,298
helpesc,key,Escape
resume,key,Escape
medals,click,205,552
medalsesc,key,Escape
quest,click,192,381
questesc,key,Escape
state,lua,print("STATE", gUIPaused, gTravelActive, gButtonsDisabled, gCurrentBuilding, gQuitActive)
pause2,key,Escape
mainmenu,click,400,343
quit,click,683,417
quityes,key,Return

View file

@ -0,0 +1,11 @@
# Recipe book pick check: hover then click unlocked bar recipes, expect the selection to follow (see session notes).
story,click,400,345
port,click,122,414
money,click,755,8
m1,click,755,88
setup,lua,Player.knownRecipes={}; for i,p in ipairs(_AllCategories.bar.products) do if i==4 or i==10 then Player.knownRecipes[p.code]=true end end
rb,lua,DisplayDialog{"ui/ui_recipes.lua"}
h10a,hover,80,420
h10b,hover,81,421
h10w,wait,1
h10,drag,81,421,79,419

View file

@ -0,0 +1,3 @@
# After save_marker.txt: the saved marker and money must come back (error() is the way to get text to stderr).
story,click,400,345
state,lua,error("RELOADED "..tostring(Player.questVariables.smoketest).." "..tostring(Player.money).." "..tostring(Player.portName))

View file

@ -0,0 +1,14 @@
# Recipe book closes with Esc; set a marker, save and quit (reload.txt reads it back).
story,click,400,345
port,click,122,414
rec,click,55,381
recesc,key,Escape
quest,click,192,381
questesc,key,Escape
inv,click,123,359
invesc,key,Escape
marker,lua,Player.questVariables.smoketest=42; Player.money=123456
pause,key,Escape
mainmenu,click,400,343
quit,click,683,417
quityes,key,Return

View file

@ -0,0 +1,22 @@
# Smoke scenario: ledger, market, shop, designers, coffee factory, pause. Coordinates: logical 800x600 (see windows.md).
story,click,400,345
port,click,122,414
money,click,755,8
m1,click,755,88
mkt,click,534,230
mktok,key,Return
buy,click,334,164
buyesc,key,Escape
haggle,click,450,346
haggleesc,key,Escape
mktclose,key,Return
shop,click,107,209
shopok,key,Return
inv,click,123,359
invesc,key,Escape
rec,click,55,381
recesc,key,Escape
quest,click,192,381
questesc,key,Escape
medals,click,205,552
medalsesc,key,Escape

View file

@ -0,0 +1,38 @@
# Market, haggle, buy/sell, shop, ledger windows, sign editor, pause window, save and quit.
story,click,400,345
port,click,122,414
money,click,755,8
m1,click,755,88
mkt,lua,zur_market:EnterBuilding()
haggle,click,450,346
haggleesc,key,Escape
mktclose,key,Return
buysell,lua,DisplayDialog{"ui/ui_buysell.lua", buy=_AllIngredients["sugar"], onOk=function(n) end}
buyesc,key,Escape
shop,lua,zur_shop:EnterBuilding()
shopclose,key,Escape
state,lua,print("STATE", gUIPaused, gTravelActive, gButtonsDisabled, gCurrentBuilding, gQuitActive)
inv,click,123,359
invesc,key,Escape
rec,click,55,381
recesc,key,Escape
quest,click,192,381
questesc,key,Escape
medals,click,205,552
medalsesc,key,Escape
state2,lua,print("STATE2", gUIPaused, gTravelActive, gButtonsDisabled, gCurrentBuilding, gQuitActive)
signset,lua,Player.sign={background="bg1",logo="logo1",name="",font=uiFontName,fontsize=30,text=""}
sign,lua,DisplayDialog{"ui/sign_basic.lua"}
signesc,key,Escape
pause,key,Escape
opt,click,400,208
optret,key,Return
hs,click,400,253
hsesc,key,Escape
help,click,400,298
helpesc,key,Escape
resume,key,Escape
pause2,key,Escape
mainmenu,click,400,343
quit,click,683,417
quityes,key,Return