Jump to content

North

Premium
  • Posts

    465
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    0%

Posts posted by North

  1. Consider that those satellites are visible only for a short period of time, when they reach orbit then you won't see them anymore. We will get better internet latencies as a result of this project (starlink) and that will allow faster communication between Europe and North America for example, in terms of everything (stocks, gaming etc).

    What exactly do you mean with artificial sky? We are already filled with space garbage and satellites but they just disitegrate as they reach earth or they piss off in deep space

    • Good 1
  2. On 7/15/2020 at 3:21 PM, Tiburon said:

    Hi, can someone give me some help?
    I want to add an extra to the account save.

    so that apart from ID and PWD, also save a pin or account security code, as you want.

    The problem is that at the time of adding it. everything normal is saved with the ID and PWD but, when I want to call the account and it logs automatically.

    It gives me problems, it says in sysser
    0715 10: 19: 39539 :: File "introLogin.py", line 1719, in __OnClickLoginAutoButton

    0715 10: 19: 39539 :: IndexError
    0715 10: 19: 39539 :::
    0715 10: 19: 39539 :: list index out of range

     

        def __OnClickSaveLoginButton(self):
            id = self.idEditLine.GetText()
            pwd = self.pwdEditLine.GetText()
            pin = self.pinEditLine.GetText()
            keypw = self.__ReadSavedPassword()
            pwd = self.encode(keypw, pwd)
            if (len(id) == 0 or len(pwd) == 0 or len(pin) == 0):
                self.PopupNotifyMessage("Por favor, escriba ID , contrasena y pin.",self.SetIDEditLineFocus)
                return
            
            try:
                file_object = open("user//credentials", "a")
            except:
                file_object = open("user//credentials", "w")
            file_object.write("{}:{};{}\n".format(id,pwd,pin))
            file_object.close()
            
            self.PopupNotifyMessage("Se guardo con exito",self.SetIDEditLineFocus)
            
        def __OnClickLoadInfoButton(self):
            self.accountList = uiSelectCredentials.FileListDialog()
            self.accountList.Open()
        
        
        def __OnClickLoginAutoButton(self):
            file_object = open("user//preferred", "r")
            credentials = file_object.readline()
            credentials = credentials.split(";")
            file_object.close()
            self.Connect("{}".format(credentials[0]), "{}".format(self.decode(self.__ReadSavedPassword(),credentials[1]), "{}".format(credentials[2]) ))

     

    Most likely you're not implementing self.pinEditLine correctly

  3. Hey guys,

    Just to let you know, there is a very cool 8 bit game engine made for python use, very easy to use and straightforward.

    https://github.com/kitao/pyxel

    It also has an MIT license which is super cool, here's a small demo that I made just for fun.

     

    7FrY6xe.gif

     


    Repo: https://github.com/FilippoLeone/pypega

     

    It also can work with cx_Freeze so you can make an executable to distribute. I just created the repo so you'll see improvements in the structure & I am going to continue this game until I will create something more serious from scratch again.

    This is how probably I will start to develop games, and it might be your chance too :)

  4. Somebody correct me if I am wrong but what you are showing is a linear function and instead you want to solve an exponential one, before writing any code I would suggest to understand the math behind it otherwise you will be stuck again in no time

    Here you go:

     

    I personally follow this guy, is pretty good at explaining things

    After watching this video try to imagine the sound intensity plotted as this exponential function where y=1 is the idle of the car you should get why you need an exponential function to represent the sound (when you press w to accellerate the sound increases in an exponential way and not in a linear way)

  5. On 4/25/2019 at 1:01 PM, Aioria said:

    ? that's interesting, thank you! 
    Anyway it did work for that issue, (thank you again), but now it gives me a new error and don't know where looking for cause it just print me this 

      Reveal hidden contents

    vDQ1hdi.png

    while in intrologin.py at 176 there is this:

      Reveal hidden contents

    aikjj26.png

    and a line 24 there are imports:

      Reveal hidden contents

    Joom4ov.png

    I hate these errors, (I) never know where to look.

    and at system.py 136:

      Reveal hidden contents

    d6XepuS.png

     

    --- edit 1
    Ok the issue is with the importing file in intrologin.py, but i don't know why, and mostly why syntax error and another error?

    --- edit 2
    I checked and probably there is another issue about python version in uiselectcredentials i think, am i wrong? ?

    --- edit 3
    I think the issue is here:

    
    	def __OnOK(self):
    		selItem=self.fileListBox.GetSelectedItem()
    		if selItem:
    			if self.selectEvent:
    				self.selectEvent(selItem.GetText())
    			with open('user//preferred','w') as mainpg:
    				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())) )
    			self.__PopupMessage("Account name {} selected.".format(selItem.GetText()))
    			self.Hide()
    		else:
    			self.__PopupMessage("You did not select any account.")

     but i don't know, i though it was the double slash / / in "with open" but stil gives me syntax error 

    ok I'm pretty sure (but i could be wrong) that it's this lines fault: 

    
    			with open('user//preferred','w') as mainpg:
    				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

    but how make them work in python 2.2? ?

    ok probably i'm wrong but i'm trying in this way

    
    				mainpg = open("user//preferred", "w")
    				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())))

    but now i have to fight against bad magic number, and can't fine base64 for python 2.2 ?

    --- edit idon'trememberthenumber

    Ok base64 is the only .pyc for python 2.2 i found, missing random.pyc, struct.pyc, hashlib.pyc  and _winreg.pyc  

    https://www.python.org/download/releases/2.2/

    No idea if you still need help but to answer the last part:

    Just download python from the official website and you can get the libs from there, most of them should be already inside the installation folder but if not, follow this:

    This is the hidden content, please

     

    If you have syntax errors try to not use with open instead use `mainpg = open('user//preferred', 'w')` instead, remember to `mainpg.close()` if you use this method, also .format() was not a thing yet if I recall correctly, you should use other kind of string formatting (https://docs.python.org/2.2/lib/typesseq-strings.html)

    21 hours ago, Syriza said:

    How can i use the keys f1, f2, f3, f4 for choosing the saved account data? Would be amazing if someone help  

    You should bind them to the index of the list you get printed in the interface, probably usin try except since the list index might not exist (empty slots).

    It's not much work but I haven't got any working environment at the moment where I could write this, I stopped doing stuff for metin2 at least for now

    • Metin2 Dev 16
    • Eyes 2
    • Think 1
    • Good 5
    • Love 6
  6. 1 hour ago, Sneaky Sneaky said:

    Hello,i have one issue

    i installed mysql correctly port 3306 is open same as mysql service but homepage doesnt connect to mysql 

    i saw some topics in freebsd forum about allowing remote connections through my.cnf but still

    probably will be a firewall issue??

    i am using freebsd11.0

     

    https://stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql

     

    And please, if you have to do it don't do it on root.

  7.  

    2 hours ago, Noel said:

    Hello, i have a problem:

     

    0208 16:59:00478 :: Traceback (most recent call last):

    0208 16:59:00478 ::   File "introLogo.py", line 60, in OnUpdate

    0208 16:59:00478 ::   File "networkModule.py", line 177, in SetLoginPhase

    0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

    0208 16:59:00478 ::   File "system.py", line 110, in _process_result

    0208 16:59:00478 ::   File "introLogin.py", line 19, in <module>

    0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

    0208 16:59:00478 ::   File "system.py", line 110, in _process_result

    0208 16:59:00478 ::   File "uiSelectCredentials.py", line 5, in <module>

    0208 16:59:00478 ::   File "system.py", line 130, in __pack_import

    0208 16:59:00479 ::   File "system.py", line 110, in _process_result

    0208 16:59:00479 ::   File "intrologin.py", line 20, in <module>

    0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

    0208 16:59:00479 ::   File "base64.py", line 8, in <module>

    0208 16:59:00479 ::   File "system.py", line 137, in __pack_import

    0208 16:59:00479 :: ImportError
    0208 16:59:00479 :: : 
    0208 16:59:00479 :: Bad magic number in C:\Users\Noel\Desktop\Jelenlegi_HU_kliens\lib\re.pyc
    0208 16:59:00479 :: 

     

    you can help me?

    Bad magic number seems to be because the pyc file mismatches with your python version.

    Check your python version, I took these libraries from python27 . You can download the correct python version from the official website and you will have the libs by adding them if needed with pip. The version is listed in the properties of your python dll.

    Re.pyc seems odd though, I did not use it my script but maybe it got upset because of the extra libs.

    Good idea @VegaS™, with some goodwill on my side I will eventually update the package but any help beforehand by anybody who wants to rewrite that part is welcome

    • Love 1
  8. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hello,

    Today I wanted to share with you something that I made quite some time ago that might turn useful to somebody.
    The package was made without putting too much effort into it so if you find anything that might be off please notify me and I will update it.

    The script does some basic encryption and saves the encryption key into your win registry so the decrypt works only on your machine, this doesn't mean that this is somehow secure, it's just the way I did it.

    How it works

     

    2042192soeyr.gif

    DL (Mega) :

    This is the hidden content, please

    If you need the extra compiled libs, here you go: 

    This is the hidden content, please


    ...I will also relase my other stuff, when I will find it...

    • Metin2 Dev 167
    • kekw 2
    • Eyes 5
    • Dislove 3
    • Sad 1
    • Think 3
    • Confused 1
    • Scream 2
    • Lmao 1
    • Good 50
    • Love 6
    • Love 96
  9. On 1/4/2019 at 2:52 AM, Exygo said:
    
    	def stripcolor(self, text):
    		if re.search(#regex with groups here, text):
    			return text[1] # returning group cleaned from the color match
            else:
                return text # If it doesn't match.
    
     

     

    This is how you should approach this problem, regex groups are made for this

  10. 2 hours ago, tierrilopes said:

    I summon Jesus Christ to clean the sins.

    Btw, if you're the owner and trust no one in your team, or don't give them high permissions or then hardcoded is indeed the better option. It's way harder for someone to steal your source and edit your game core (or hex ) then to enter database and change stuff, because sql injection is so 'hard' in crappy mt2 sites. 

    Personally I would just change permissions of gm ranks.

    Now remember that easy to change in database also makes it easier to hack. 

    No sql user that will manage the website should have the permission to access anything in the common table tho

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.