System Encoder

Nestharus

o-o
Reaction score
84
Added a quickstart guide to getting Lua into a map since a lot of people are struggling with that =).
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
a more appropriate name for SPACE might be DELIMITER
 

Nestharus

o-o
Reaction score
84
Perhaps, but it'd be an incredible hassle to change it... going through the demo map changing all refs to it, updating two threads... >.<
 

Romek

Super Moderator
Reaction score
964
> Perhaps, but it'd be an incredible hassle to change it... going through the demo map changing all refs to it, updating two threads... >.<
Change it along with anything else you change in the next update. It's obviously not a high priority issue. You'll need to update the system at some point though. :p

Anyway, approved. I'll also change the prefix to [System]. Demo maps are something slightly different.
 

Nestharus

o-o
Reaction score
84
> Perhaps, but it'd be an incredible hassle to change it... going through the demo map changing all refs to it, updating two threads... >.<
Change it along with anything else you change in the next update. It's obviously not a high priority issue. You'll need to update the system at some point though. :p

Anyway, approved. I'll also change the prefix to [System]. Demo maps are something slightly different.

/cry

you're really not going to make me do an update just to change SPACE -> DELIMITER are you? : (

Because I don't know if there will ever be an update for this again o-o. If there is, who knows when it would be ;o.
 

Romek

Super Moderator
Reaction score
964
> you're really not going to make me do an update just to change SPACE -> DELIMITER are you? : (
No, read my post again. I assumed there'd be an update at some point in the eventual future though. There's no need for an update for such a minor 'issue'.
 

Nestharus

o-o
Reaction score
84
ok =o. When I read this-
You'll need to update the system at some point though.

I thought you wanted me to change the SPACE -> DELIMITER at some point, even if no other update was planned =P.

okie then =D

Btw, I think it's funny that this got approved before the resources that it uses did =P.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Btw, I think it's funny that this got approved before the resources that it uses did =P.

IMHO it's better that way.

To have a delicious apple pie you first need delicious apples.

;)
 

Nestharus

o-o
Reaction score
84
Wrote a new tutorial: Quickstart Guide to Installing and Using Encoder =).

Linked to at the top
 

Magthridon96

Member
Reaction score
2
So, Nestharus, how's Encoder 3.0.0.0 coming along? =)
Any issues when Scrambling with prime bases yet? :D
Were you able to maintain a 0.45-0.5 p-value? ^^
If yes, then go for it =)
Make the best save/load system out there even better =D
 

Nestharus

o-o
Reaction score
84
I just got up, but I'll prob be doing an update in the next 16 hours.

Were you able to maintain a 0.45-0.5 p-value

From Scrambler thread on THW

-> http://www.hiveworkshop.com/forums/pastebin.php?id=fk1keq
As the data set increases in value or decreases in value, the average increases/decreases in value. Because of this, lower values are weighted on one side and higher values are weighted on another side with medium values in the center. This is the reason why this fails the runs test with large numbers of data.

This behavior is to be expected and is actually desirable for this =).

Within a local area of 20 or 80, the data is very even as the data set isn't large enough to cause this effect.

So given a number, you can expect it to fall within a specific range. The larger the number, the bigger the range it can fall in. As save/load codes are very large, the effect that takes away from the randomness will take much longer to occur (I was dealing with a very small value of 65536), meaning that this will pretty much generate a random number given a number.

To give you an idea of the range for larger numbers, 65536 goes between around 4500 and 1.2 million.
 

Nestharus

o-o
Reaction score
84
Updated to Encoder 3


Man, I barely got this to fit into the thread >: O


This update features a variety of new security techniques
-player based bases based on player name + salt + a derived base
-player based checksums with variance derived from player name + salt 2 + checksum
-uses new Scrambler 3 (-save and -load lag on big codes now, /sad face)


So essentially, the codes are pretty much 100% impossible to crack w/o both opening the map and ripping out the settings + understanding the systems in the first place ;D


Updated to Encoder 3.0.1.0
Added minimum/maximum boundaries on loading codes. This will block out players attempting to load things like 1, 5, or 7. I came up with the idea when I tried -load 5 in another map and it worked, haha.


And TH gets my special remove as many characters as I can for the code in the post. That's the only way I can fit it in now.


Updated to Encoder 3.0.1.1
-Updated demo map to use updated Base and BigInt
-Added a check to make sure all characters in a code are valid characters before proceeding to open data buffer


And I'm just not going to post the Encoder code on the thread anymore... it doesn't fit unless I make it unreadable, so it's pointless >: P
 

tooltiperror

Super Moderator
Reaction score
231
>And I'm just not going to post the Encoder code on the thread anymore... it doesn't fit unless I make it unreadable, so it's pointless >: P
You could ask in Forum Questions to have a second post put in after your first post so you can have a space for the code.

And putting code in a post has become a (possibly evil) de facto standard.
 

Nestharus

o-o
Reaction score
84
Nah, I don't like to split code up into two posts. That's just something I don't do ^)^. It makes it very difficult to update the post, harder cnp, and harder for users to read. No tx ^^


The header should be enough to give people a feel for the system ; ).
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
Nah, I don't like to split code up into two posts. That's just something I don't do ^)^. It makes it very difficult to update the post, harder cnp, and harder for users to read.


JASS:
    function CatalogAddCatalog takes integer y, integer b returns nothing
        local integer z = w
        loop
            if (not f[y].boolean.has(p<b>)) then
                set z = z + 1
                set p[z] = p<b>
                set f[y].boolean[p<b>] = true
                set e[l[y]] = z
                set l[y] = z
            endif
            set b = e<b>
            exitwhen b == 0
        endloop
        set w = z
    endfunction</b></b></b></b>


really?
 

Bribe

vJass errors are legion
Reaction score
67
Combined with the prefix Encoder__ or even Encoder___, the difference
between a readable 3 or 4 char variable and a 1 char variable is a waste
of time. It will also make this library very tough for him to edit in a few
months because he will have to re-study the entire thing instead of just
pick up where he left off.

Unless Nestharus is secretly a machine able to discern a meaningful
difference between "x" and "f".

I think for the pain in trying to read these libraries in order to give them
a proper review, or the pain of users who try to judge if this script is
good enough to import into their map, just to avert the problem of a
map optimizer that the majority of users don't have and/or couldn't care
less about, it is worth it to have long variable names.

Any one using AI natives or string-based API can simply edit their map
using an mpq editor to fix said problems, in the 0.5% chance they are
actually using the thing.

Or Nestharus can take the time to build a short program that shortens
names, instead of taking the time to figure out his own systems trying
to remember if "x" is a unit and "u" is a coordinate.

Or we can wait for me to build a standalone optimizer which will happen
in the next month or two.
 

tooltiperror

Super Moderator
Reaction score
231
I agree with all that Bribe said.

I do not think any script with such practices should be approved at all.
 

Nestharus

o-o
Reaction score
84
Eh, I write them in such a way that I'd be willing to use them as well ; ).

I'm not going to write something that I'd never be willing to use. That's the reason for the short variable names =P.


And I put up all of the code as requested.


Furthermore, the code is thoroughly commented. The short variable names shouldn't really be a problem as it can clearly be seen what's going on in the code =).
 
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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top