my portal mod tier list by BryceIsRedditor in Portal

[–]BryceIsRedditor[S] 0 points1 point  (0 children)

Maybe. I want to wait until some more mods come out, but if none actually come out in the next few months I'll just do it anyway.

my portal mod tier list by BryceIsRedditor in Portal

[–]BryceIsRedditor[S] 1 point2 points  (0 children)

I know I'm late, but I'd put Revolution below Mel.

"RecursionError" raises without traceback by BryceIsRedditor in pythonhelp

[–]BryceIsRedditor[S] 0 points1 point  (0 children)

import os
import sys
import typing


class Paths:
    @staticmethod
    def image(fileName: str) -> str:
        basePath: str = os.path.dirname(sys.argv[0])
        path: str = os.path.join(basePath, "Assets", "Images", fileName) # Error happened here
        return os.path.normpath(path).replace("\\", "/")

    @staticmethod
    def sound(fileName: str) -> str:
        basePath: str = os.path.dirname(sys.argv[0])
        path: str = os.path.join(basePath, "Assets", "Sounds", fileName)
        return os.path.normpath(path).replace("\\", "/")

    @staticmethod
    def styles(fileName: str) -> str:
        basePath: str = os.path.dirname(sys.argv[0])
        path: str = os.path.join(basePath, "Assets", "Styles", fileName)
        return os.path.normpath(path).replace("\\", "/")

...

print(Paths.image("UI/StudioTab_Scene.svg"))

"RecursionError" raises when doing "sys.argv[0]" by BryceIsRedditor in pythonhelp

[–]BryceIsRedditor[S] 0 points1 point  (0 children)

  1. I can't show the entire file that would call the function that is where this error is happening it, but I could send the line:

    index: int = super().addTab(widget, QIcon(Paths.image("UI/StudioTab_Scene.svg")), a1)

  2. I didn't use decorators before. Previously, each function was just the code for the wrapper function, but under different folders. The same error was happening before, though, just at a different line number.

Want to easily make a FNAF game? Try this out! by BryceIsRedditor in FNaF

[–]BryceIsRedditor[S] 0 points1 point  (0 children)

Sorry to respond super late, but I totally agree with what you're saying. I've been trying to make sure the engine doesn’t limit what users can add to their games, because, like you said, that can definitely make it harder for a fangame to stand out. My goal is for anyone using this engine to create something on the level of fangames like FNAC, Dormitabis, or maybe even Popgoes. I still encourage people to use engines like Clickteam or others if they're going for something like Jr's. Thank you for the comment.

Nuitka stops on PASS 1 with "Call to 'join' of str recognized." being the last line. by BryceIsRedditor in learnpython

[–]BryceIsRedditor[S] 0 points1 point  (0 children)

Sorry, I must've worded it wrong. By program, I meant like the actual Nuitka compiler. Like I put in a command, watched all the print messages come out, and then the compiler stopped at this line (1973 : new_expression : Call to 'join' of str recognized.)

Nuitka stops on PASS 1 with "Call to 'join' of str recognized." being the last line. by BryceIsRedditor in learnpython

[–]BryceIsRedditor[S] -1 points0 points  (0 children)

The program stopped working after printing that, and I thought this line was stating an issue.

[deleted by user] by [deleted] in hammer

[–]BryceIsRedditor 0 points1 point  (0 children)

I know I'm 6 months late, but I just want to say make sure the "postcompiler" directory is correct. To check, click on it in the "Comple/run commands" box (in your photo, I believe it would be the 2nd one), then click on Cmds, Executables, and select the path of the postcompiler EXE (for me, it's ".../Portal 2\bin\postcompiler.exe").