This is true down to the assembly. Bools are treated as bytes because it is faster to pass them around that way (no bit fiddling). 1 is true and not 1 is false.
Using arrays means you have to allocate the data before hand, and there is no creation/release for that so you use more memory. Of course, you're trading less memory for more operations to get to your data. If you already know your maximum limit, then arrays work too. Also, it's the same at the system level, so the array index is your pointer.
I think WEU and newgenpack for war3 used arrays and syntactic sugar for structs, and that works out okay, so... eh.
I don't know if this is an active project but I see the last post is 21 hours ago. I also don't know if this has already been done. Would it be possible to add generic functions?
Not sure if that would be helpful but I assume a simple static generic function would be good to have. I don't think it would be harder to code than what you have currently done.
I was playing the Cortex RP and one upgrade changed the skin for some Protoss units to sleek black. How do I accomplish this? Is it just data or do I have to make prefab skin textures and just change the attribute for the texture?
When trying to open a map with some custom dependency, it will say something like "Unable to load dependencies. Would you like to run the repair tool?"
Seven, it's all about speed. I'm sure you can time these functions separately. Also, I don't think he was being an ass. There is a function that can do that for you so I think it'll be faster than the algorithm you use now.
You can attach an event in-game, but I don't think you can remove events. It's still sad because even after WarCraft III, you still can't remove events.
You can destroy the trigger, create a new one, attach a new event, and attach all the same conditions and actions, and there you go. You now have a trigger with a dynamic event. I wouldn't recommend doing this very often, because it could lag a game up if it was, say, on a timer of 0.1 seconds.
You can't load and save map states. You would have to set up units and triggers conditionally. This worked alright for WarCraft III custom campaigns, in that the main action didn't really happen on the central map so it was easy to keep track of the state. The main map just kept track of the quests you completed, but you can probably store more information with banks now.
@depthsofchaos: Go
You can "lock" a map. I've never actually tested what a locked map is, but it might encode the trigger file or even the entire .mpq. Also, I think you can convert text to a string.
0
@Deaod: Go
Oh, right. Oops.
0
This is true down to the assembly. Bools are treated as bytes because it is faster to pass them around that way (no bit fiddling). 1 is true and not 1 is false.
0
Using arrays means you have to allocate the data before hand, and there is no creation/release for that so you use more memory. Of course, you're trading less memory for more operations to get to your data. If you already know your maximum limit, then arrays work too. Also, it's the same at the system level, so the array index is your pointer.
I think WEU and newgenpack for war3 used arrays and syntactic sugar for structs, and that works out okay, so... eh.
0
Has anyone figured if they can get functioning linked lists?
I think this might work but it's really sketchy. It uses dialogs and the link is implicit via built-in functions to get the next node.
Pardon my ignorance if this code is wrong or has been tried before. I know most calls missing parameters. I've not been coding in galaxy for a while.
0
I don't know if this is an active project but I see the last post is 21 hours ago. I also don't know if this has already been done. Would it be possible to add generic functions?
Not sure if that would be helpful but I assume a simple static generic function would be good to have. I don't think it would be harder to code than what you have currently done.
0
I was playing the Cortex RP and one upgrade changed the skin for some Protoss units to sleek black. How do I accomplish this? Is it just data or do I have to make prefab skin textures and just change the attribute for the texture?
0
When trying to open a map with some custom dependency, it will say something like "Unable to load dependencies. Would you like to run the repair tool?"
How do I fix this?
0
Somebody has to have a video on ultra in HD.
0
@DarkRevenantX: Go
Heh.
@Sevenation: Go
Seven, it's all about speed. I'm sure you can time these functions separately. Also, I don't think he was being an ass. There is a function that can do that for you so I think it'll be faster than the algorithm you use now.
0
You can attach an event in-game, but I don't think you can remove events. It's still sad because even after WarCraft III, you still can't remove events.
You can destroy the trigger, create a new one, attach a new event, and attach all the same conditions and actions, and there you go. You now have a trigger with a dynamic event. I wouldn't recommend doing this very often, because it could lag a game up if it was, say, on a timer of 0.1 seconds.
0
You can't load and save map states. You would have to set up units and triggers conditionally. This worked alright for WarCraft III custom campaigns, in that the main action didn't really happen on the central map so it was easy to keep track of the state. The main map just kept track of the quests you completed, but you can probably store more information with banks now.
0
@s3rius: Go
Also, what base is this stored in? 64? More?
0
What? Patch 18? Bull.
0
@Kanaru Is that Browder in your helmet? Lol!
Also sweet, do want full details when the game is cracked.
0
@depthsofchaos: Go You can "lock" a map. I've never actually tested what a locked map is, but it might encode the trigger file or even the entire .mpq. Also, I think you can convert text to a string.