fixed few formating things, and annoying 'g' error. (work-around somehow the '..' operator does not work with numbers)

develop
Warmist 2011-08-19 19:12:25 +03:00
parent 97712089bd
commit 68fbd4a78d
4 changed files with 5 additions and 6 deletions

@ -167,6 +167,5 @@ DFhackCExport command_result dfusion (Core * c, vector <string> & parameters)
delete thread_dfusion;
thread_dfusion=0;
}
return CR_OK;
}

@ -204,7 +204,7 @@ end
function it_menu:display()
print("Select choice (q exits):")
for p,c in pairs(self.items) do
print(p..")."..c[2])
print(string.format("%3d).%s",p,c[2]))
end
local ans
repeat

@ -17,9 +17,9 @@ end
function mainmenu(t1)
Console.clear()
while true do
print("No. Name Desc")
print("No. Name Desc")
for k,v in pairs(t1) do
print(string.format("%d %s %s",k,v[1],v[2]))
print(string.format("%3d %15s %s",k,v[1],v[2]))
end
local q=Console.lineedit("Select plugin to run (q to quit):")
if q=='q' then return end

@ -1,8 +1,8 @@
function f_dwarves()
//mov DWORD PTR [ESP+14],7
//jmp +0x08
--mov DWORD PTR [ESP+14],7
--jmp +0x08
pos_=offsets.findall(0,0x24,0x14,0x07,0,0,0) --search pattern
for _,v in pairs(pos_) do
print(string.format("Possible hit:%x",v))