Allbrother Posted March 17, 2021 Share Posted March 17, 2021 (edited) Hi. I need to patch every column in a 2da after column x, but I don't know how many columns there are so I can't just do it one at a time. So I need to go from COUNT_2DA_COLS cols SET_2DA_ENTRY 29 4 cols 0 To COUNT_2DA_COLS cols SET_2DA_ENTRY 29 4->cols cols 0 How would I do that? Edited March 18, 2021 by Allbrother Quote Link to comment
lynx Posted March 18, 2021 Share Posted March 18, 2021 As usual, with a while or for loop: https://weidu.org/~thebigg/README-WeiDU.html Quote Link to comment
Jarno Mikkola Posted March 18, 2021 Share Posted March 18, 2021 6 hours ago, lynx said: As usual, with a while or for loop: You might want to be a little more specific. Than a 100+ page coding manual. Quote Link to comment
subtledoctor Posted March 18, 2021 Share Posted March 18, 2021 Y'know Jarno you could just type the clarification yourself. Bitching about someone not being helpful enough in the same breath that you are being completely unhelpful is not a good look. COUNT_2DA_COLS cols FOR (col = 4 ; col < cols ; ++col) BEGIN SET_2DA_ENTRY 29 col cols 0 END Quote Link to comment
Jarno Mikkola Posted March 18, 2021 Share Posted March 18, 2021 1 hour ago, subtledoctor said: Y'know Jarno you could just type the clarification yourself. Bitching about someone not being helpful enough in the same breath that you are being completely unhelpful is not a good look. Right, and what's the general casein protein amount in the powdered milk ? How the cheese should you know, well there's a whey... As in, did I ever say I knew ? No. Quote Link to comment
Allbrother Posted March 18, 2021 Author Share Posted March 18, 2021 (edited) Thanks guys. TBF telling me FOR could do it was helpful, I had picked it up (though only half understood it) from a tutorial a while ago and was using it to find the row to patch in the same tp2, but for some inexplicable reason had decided it couldn't do what I needed it to with the cols . Took some figuring out how to write it and the exact code would've saved some time (thanks subtledoctor) but got it working eventually Edited March 18, 2021 by Allbrother Quote Link to comment
lynx Posted March 18, 2021 Share Posted March 18, 2021 I would have linked it directly, but the docs don't have any anchors. Quote Link to comment
Almateria Posted March 21, 2021 Share Posted March 21, 2021 I think you should leave posting in the „Modding Q&A” section of the forum to people who are able and willing to provide answers, Jarno. Quote Link to comment
Jarno Mikkola Posted March 21, 2021 Share Posted March 21, 2021 (edited) On 3/18/2021 at 11:25 PM, lynx said: I would have linked it directly, but the docs don't have any anchors. Right, next you'll be telling me that it has no index at the bottom of the page that links to most subjects in it either. Use a different browser please and recheck again. Now, it might not havwe everything, but most sections have quite few index locations that can be indexed to, from which you can describe the portion you would need to look out for... Or just quote the thing yourself. 31 minutes ago, Almateria said: I think you should leave posting in the „Modding Q&A” section of the forum to people who are able and willing to provide answers, Jarno. Somehow you forgot the meaning of the "Q" in that entirely. It's "Questions", not "Quit". But you can go ahead and do that on your own. Edited March 21, 2021 by Jarno Mikkola Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.