System Swap System

Vestras

Retired
Reaction score
249
Nothing...
Damn, you got a point. I'll make a boolean for not create buttons for players who don't got any heroes.
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
You should use an array struct, but you can do it also with 2D array, for fun :p
 

Flare

Stops copies me!
Reaction score
662
Why did I use 2D arrays? Well, I needed to store 2 sets of up to 6 things, and 2D array was just a convienience - there's no requirement to do it (you could just do i + 6 for one set of array indexes, and have a one-dimensional array), but, as I said, I just used it because it was fairly convienient

I just wanted to clear up the code a bit, actually help. No harm meant.
None taken, but alot of them seem quite obvious

Anyway, as regards the null thing, there wasn't any need to comment it out (or have it). Playercolors may not need nulling, but nothing bad will happen (at least it shouldn't anyway) if you do null it

EDIT: ...
Code:
//*    Furthermore, I would like to thank Flare for his
//*    eternal pester about me improving the code :p
//*    Without him [B][COLOR="Red"]this script would leak badly[/COLOR][/B]
:confused: I mentioned leaks?
 

saw792

Is known to say things. That is all.
Reaction score
280
>I mentioned leaks?

You probably instilled in him the desire and motivation to check his code for leaks, rather than actually pointing them out. Yeah, that sounds plausible enough.
 

Vestras

Retired
Reaction score
249
You should use an array struct, but you can do it also with 2D array, for fun :p

Dude, I'm not gonna change it. Why? Because it doesn't matter. Speed isn't needed.

Flare >

What saw said.

So is there any more coding mistakes or is this approved?
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
Dude, I'm not gonna change it. Why? Because it doesn't matter. Speed isn't needed.
But you forgot the string "leak" by using I2S(H2I), and it requires Table for nothing, because you can do it simply with a struct, instead of using cache.
 

Vestras

Retired
Reaction score
249
But you forgot the string "leak" by using I2S(H2I), and it requires Table for nothing, because you can do it simply with a struct, instead of using cache.

I can, but I won't. I see no reasons.
What? I never used I2S(H2I)...


Gwypass >
Yes, I do.
And I don't understand your question.
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
I can, but I won't. I see no reasons.
Then don't hope it will be approved, at least not on www.wc3campaigns.net, you already use vJass, so use cache when there is absolutely no need is very lame.

What? I never used I2S(H2I)...
And you think Table use some vodoo thing ?

EDIT : Hmm yes you're right for the I2S(H2I(... thing because you use a string Table, but it's steal lame.
 

Flare

Stops copies me!
Reaction score
662
Can you two please give it a rest... personally, I see no major issue with gamecache being used here. There is alternatives, but what's done is done, and it's not going to break the game. Anyway, the system is only enabled for 2 minutes of game-time and it's not likely you will do much swapping in that time (I can see about 20 being a max in a 12-player game, taking into account denied swaps as well) and you're not going to have a phenomenal amount of string leaks from that

Also, could be done with global arrays and GetPlayerId, assuming dialog button clicked events return a GetTriggerPlayer (I've never worked with dialogs so I don't know if they do or not)

In the end - I'm not going to push any particular method on you, whatever works is fine by me. If another mod wants it changed, so be it, but until then, take your pick as to what's going to happen with passing data
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
Can you two please give it a rest... personally, I see no major issue with gamecache being used here. There is alternatives, but what's done is done, and it's not going to break the game. Anyway, the system is only enabled for 2 minutes of game-time and it's not likely you will do much swapping in that time (I can see about 20 being a max in a 12-player game, taking into account denied swaps as well) and 20 unique I2S (H2I (...)) isn't going to kill you

Also, could be done with global arrays and GetPlayerId, assuming dialog button clicked events return a GetTriggerPlayer (I've never worked with dialogs so I don't know if they do or not)

It's like going to school with a bike even if you can take the bus for free.
Sure you will arrive, but it will take you much time for nothing, unless you are fat :p

GetTriggerPlayer() work fine with dialogs, hopefully ...
 

Vestras

Retired
Reaction score
249
It's like going to school with a bike even if you can take the bus for free.
Sure you will arrive, but it will take you much time for nothing, unless you are fat :p

I do that, I arrive faster than the bus.
GTFO. :p

So, Flare, I guess this is approved then?
 

Flare

Stops copies me!
Reaction score
662
GTFO = Get the f*ck out

So, Flare, I guess this is approved then?
Did I say that it was approved? If I did, it'd be approved, but since I haven't it's not approved just yet

Be patient, gonna give it a little more time, must do another lookover, and gonna wait for more thread-related responses (i.e. will people make use, is there anything they feel could be improved, etc.), it's only been 2 days and 3 posts that aren't code-related or spam, which doesn't give a good enough overview
 

Vestras

Retired
Reaction score
249
Okay, gives me time to update this with the things posted at clanmapz.com.
As long as you don't forget it, or more likely, I forget it :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top