Jump to content

Gamemod Name and Map Name dont change


Tockra

Recommended Posts

Posted

Is the rest of the code working? If not, use getResourceRootElement( ) instead of resourceRoot (if resourceRoot hasn't been defined).

Posted

Maybe map name and game type are set by mapmanager when your resource starts. Try onGamemodeStart if your resource is a gamemode.

Posted

Idk but it was wrong in my meta :)

There is a type: gamemode or something like that shizzle :P

or name = hdfkjghdfg

Change it there and see what happens :)

Posted
Idk but it was wrong in my meta :)

There is a type: gamemode or something like that shizzle :P

or name = hdfkjghdfg

Change it there and see what happens :)

I dont know, what you mean ?

And 50p i dont found onGamemodeStart in the Wiki...

Posted
Idk but it was wrong in my meta :)

There is a type: gamemode or something like that shizzle :P

or name = hdfkjghdfg

Change it there and see what happens :)

I dont know, what you mean ?

And 50p i dont found onGamemodeStart in the Wiki...

open your meta.xml

Something like this is there:

Change it :)

Posted

Did you check, if the function is even called or if it just gets stuck before those two lines?

Insert some debug lines into your code and check, until which point there are being printed.

Then you can see, whether your function is actually called and if yes, where it gets stuck.

Posted

So i now starting my resource as last resource and now the gamemod name is shown (without setGameType).

I need now only the map name...

Posted

Okay, then other resources interfere with your gamemode.

Try stopping the others one by one and restarting the gamemode, until it works. Then you now, which resource resets this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...