Yep, the same type of check is also happening on the unit limit.Once you get to a certain amount of units the game just refuses to allow you to build more. Pesky checks :/
Got the slot and military supply to work. You must set the supply in 2 data/addresses due to the check for building it and the queue. They are right next to each other. This was an easy fix.
The slot was a bit complicated, I had to break and trace to find a specific function.
I also added an entity editor. As of now it only has the hull and armor. You can try expanding that by looking at the data structure around the memory of that entity. It has some addresses that lead to something related to that entity. It could be like the exp of the ship or ability or something. I haven't broken down the data structure of it so I won't be touching this any time soon. Just feel free to explore it.
I still have to figure out how to make an instant build for structure.
Got the slot and military supply to work. You must set the supply in 2 data/addresses due to the check for building it and the queue. They are right next to each other. This was an easy fix.
The slot was a bit complicated, I had to break and trace to find a specific function.
I also added an entity editor. As of now it only has the hull and armor. You can try expanding that by looking at the data structure around the memory of that entity. It has some addresses that lead to something related to that entity. It could be like the exp of the ship or ability or something. I haven't broken down the data structure of it so I won't be touching this any time soon. Just feel free to explore it.
I still have to figure out how to make an instant build for structure.
Nice work got a chance to use your table on a 1 player skirmish and it was CRAZY fun. If I was going to try and track down instant build I guess I would try and find the HP for the builder unit and then search around near by memory for a value that could be build speed (assuming theres some sort of unit structure). Im not in game right now but I swear it listed the build time of stuff on the item tooltip (might need to press ALT). Should be easy to find the countdown timer knowing how long something takes to build and then throw in a multiplier or something.
Great work on the table, wish I could contribute but I've barely even managed to play the game in the last few days :/
Nice work got a chance to use your table on a 1 player skirmish and it was CRAZY fun. If I was going to try and track down instant build I guess I would try and find the HP for the builder unit and then search around near by memory for a value that could be build speed (assuming theres some sort of unit structure). Im not in game right now but I swear it listed the build time of stuff on the item tooltip (might need to press ALT). Should be easy to find the countdown timer knowing how long something takes to build and then throw in a multiplier or something.
Great work on the table, wish I could contribute but I've barely even managed to play the game in the last few days :/
The table is only tested and made in skirmish mode. I don't support multiplayer.
I'm going to have to try that time thing for the structure.
@WankHole I figured out the instant build. Apparently the UI is showing the progress about 1% or 2% ahead. The actual progress is a bit behind. Now the downside is the hull and armor. It instant complete but hull armor isn't fill up. I need a way to get them fill up too.
Hey Destinate, At the top of CE. When in CE, hit Cntrl+Alt+L to open Table Lua.
If you put the following code block in there and click execute. It will put two tabs up top for your future tables. Get Table Update which when clicked, send them to this thread so ppl don't have to bookmark or find it. And a Full/Compact view button.
It also includes at the top to auto attach the process of Sins2.exe so ppl don't have to find it in the list. Highly recommend to use this in your table.
I did add the background color, I mean I use it on all personal tables. Can remove that bit if you want to, but it does give it a nice "Premium" flare IMO xD
if not syntaxcheck then
getAutoAttachList().add("sins2.exe")
end
GetAddressList().Control[0].BackgroundColor=0x403d3d
function pushUpdate( sender, force )
local state = not( updatemenuitem.Caption == 'Get Table Update' )
if force ~= nil then
state = not force
end
updatemenuitem.Caption = state and 'Get Table Update' or 'Get Table Update'
if force == nil then
shellExecute('https://fearlessrevolution.com/viewtopic.php?f=4&t=30835')
end
end
function addUpdateButton()
if updatemenualreadyexists then return end
local parent = getMainForm().Menu.Items
updatemenuitem = createMenuItem( parent )
parent.add( updatemenuitem )
updatemenuitem.Caption = 'Get Table Update'
updatemenuitem.OnClick = pushUpdate
updatemenualreadyexists = 'yes'
end
addUpdateButton()
pushUpdate( nil, true )
function cycleFullCompact( sender, force )
local state = not( compactmenuitem.Caption == 'Compact View Mode' )
if force ~= nil then
state = not force
end
compactmenuitem.Caption = state and 'Compact View Mode' or 'Full View Mode'
getMainForm().Splitter1.Visible = state
getMainForm().Panel4.Visible = state
getMainForm().Panel5.Visible = state
end
function addCompactMenu()
if compactmenualreadyexists then return end
local parent = getMainForm().Menu.Items
compactmenuitem = createMenuItem( parent )
parent.add( compactmenuitem )
compactmenuitem.Caption = 'Compact View Mode'
compactmenuitem.OnClick = cycleFullCompact
compactmenualreadyexists = 'yes'
end
addCompactMenu()
cycleFullCompact( nil, true )