SetPlayerWeapon

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Kaphene
Posts: 37
Joined: 02 Apr 2013, 21:38

SetPlayerWeapon

Post by Kaphene »

I know for 100% that this has been brought up before in a suggestions thread, but I'm going to bring it up again because I think it might be important.

Obviously you can not set the weapon of a player that is alive in "vanilla modes"

1. My mode is more chocolate than you could imagine nadeo
2. Why stifle the creativity of individuals that are creating your game for you for free? Do you have any idea how many people only play this game because obstacle exists? Do you have any idea how many people hate the competitiveness of Elite? Do you have any idea how much better game modes we could make FOR YOU, FOR FREE if maniascript didn't fight us every step of the way?
3. I'd like to thank you in advance for deciding to let us SetPlayerWeapon while they are alive after you have read my 1 and 2.

4.(directed to other scripters, not nadeo) is it possible to mimic the way that combo lets you switch weapons in a custom game mode since the player technically already has the weapon and they are simply switching to it? If that is possible, could it then be possible somehow to FORCE somebody to switch a weapon when a certain event happened?
(Look at me trying to workaround something that should be simple)
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: SetPlayerWeapon

Post by Eole »

You just have to create a TitlePack with your game mode script and it will be possible to use the SetPlayerWeapon() function when a player is already spawned. Even us can't use this function in the Storm title, so I don't really see the problem. If your mode is more chocolate then don't put in in the same box than the vanilla. ^^
Kaphene wrote:Why stifle the creativity of individuals that are creating your game for you for free? Do you have any idea how many people only play this game because obstacle exists? Do you have any idea how many people hate the competitiveness of Elite? Do you have any idea how much better game modes we could make FOR YOU, FOR FREE if maniascript didn't fight us every step of the way?
No of course, we're just a bunch of dumb game creators who know nothings about that. That's exactly why since the first opus of TrackMania we tried with all our might to stop the creativity of the players: Map editor, replay editor, skin editor, 3D models import, game mode creation, server customization, ...

Yes ManiaScript is limited and far from perfect. But these limits are the sames for you and me. Obstacle could be created within the constraints of ManiaScript. And it's creator was way more constructive about the limits he encountered.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Kaphene
Posts: 37
Joined: 02 Apr 2013, 21:38

Re: SetPlayerWeapon

Post by Kaphene »

A simple, you have to make a titlepack, or deleting or moving the thread would have done nicely, I suppose flaming customers works too though lol.
User avatar
Gugli
Nadeo
Nadeo
Posts: 536
Joined: 14 Jun 2010, 17:35
Location: Mon PC est à Paris, mais mon coeur rode dans les forêts de Lozère

Re: SetPlayerWeapon

Post by Gugli »

Kaphene wrote:A simple, you have to make a titlepack, or deleting or moving the thread would have done nicely, I suppose flaming customers works too though lol.
A simple : "How can I make a non-vanilla mode ?" or "I can't get SetPlayerWeapon to work." or "Is there a way to do the same as in the Combo Mode?" would have done nicely. But I suppose flaming developers with CAPS LOCK ON works too though ;p

Trollling apart, I hope you'll manage to do whatever you want to with ManiaScript. If not : feel free to ask, there's plenty of people there who are eager to help (esp. when asked nicely and honestly), and we devs also give advice sometimes.

Also, if you encounter a problem, and can't find a workaround, please do give us any suggestion you have. There's plenty of cases where the script API is built hand-in-hand with script-makers (like this : http://forum.maniaplanet.com/viewtopic. ... 40#p162052 ). And for now, it has given good results.

Enjoy the game !
--
(>~_~)> ═╦═ ╔╦╗ <(~_~<)
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: SetPlayerWeapon

Post by steeffeen »

i'm still wondering why there is this limitation? why do title packs have fewer limitations?
it isn't because you don't want people to be able to create too crazy modes which are fearing away new players, is it? (i think that wouldn't be necessary)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Kaphene
    Posts: 37
    Joined: 02 Apr 2013, 21:38

    Re: SetPlayerWeapon

    Post by Kaphene »

    Gugli wrote:
    Kaphene wrote:A simple, you have to make a titlepack, or deleting or moving the thread would have done nicely, I suppose flaming customers works too though lol.
    A simple : "How can I make a non-vanilla mode ?" or "I can't get SetPlayerWeapon to work." or "Is there a way to do the same as in the Combo Mode?" would have done nicely. But I suppose flaming developers with CAPS LOCK ON works too though ;p

    Trollling apart, I hope you'll manage to do whatever you want to with ManiaScript. If not : feel free to ask, there's plenty of people there who are eager to help (esp. when asked nicely and honestly), and we devs also give advice sometimes.

    Also, if you encounter a problem, and can't find a workaround, please do give us any suggestion you have. There's plenty of cases where the script API is built hand-in-hand with script-makers (like this : http://forum.maniaplanet.com/viewtopic. ... 40#p162052 ). And for now, it has given good results.

    Enjoy the game !
    I'm sorry that I was in a bad mood after trying for 3 hours to get something to work that isn't possible, but it still stands that nobody is going to download a titlepack for something they have never heard of. The most likely way to get people to play a new game mode is if it's available in Storm. I realize that setplayerweapon isn't possible and that's fine, I still don't appreciate being talked down to by "moderators". Yes I was in a horrible mood, Yes I posted my question in an angry fashion, the thread probably should have just been deleted. Put your flamethrowers away, and I'll put mine away okay?

    I still think it should be possible, so I guess I would say now, can we possibly get this functionality added to "vanilla" mode.

    and I'm assuming since nobody has said anything about it, that my proposed workaround would be impossible?
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: SetPlayerWeapon

    Post by steeffeen »

    Kaphene wrote:and I'm assuming since nobody has said anything about it, that my proposed workaround would be impossible?
    you will need to unspawn the player for switching his weapon, because it's only possible while Player.SpawnStatus != Spawned
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      Gugli
      Nadeo
      Nadeo
      Posts: 536
      Joined: 14 Jun 2010, 17:35
      Location: Mon PC est à Paris, mais mon coeur rode dans les forêts de Lozère

      Re: SetPlayerWeapon

      Post by Gugli »

      Ok, no more flame-throwers on Maniaplanet ^_^ !! (only energy weapons anyway ;D)
      Kaphene wrote: I still think it should be possible, so I guess I would say now, can we possibly get this functionality added to "vanilla" mode.
      I believe it's not planned.

      One reason behind it is : we want to offer a consistent gameplay for people playing the Stom original modes.
      In the future, we will give more and more power to scripts : they'll be able to change weapons and core-gameplay elements. I'm confident that in the end, we'll see great things that have nothing to do with "vanilla" Storm, like remakes of other games or brand new games. All thanks to script-makers, like you ^_^.
      But we don't want those modes to get mixed up with the Storm "native" experience : when you join a Storm server, you know what to expect : same weapon on the same platforms, same way to use your stamina, etc.
      That's why all those new API features are only available in title packs.

      (But titles are good anyways. They also allow you to monitor your mode : I think that you'll be able to know which servers are running it, to get audience reports, to issue serial-keys, to get Planets from every user, and probably many new features that I have no idea of. All those things could not be done if your title run in Storm's "Bazaar", so better get used to them I guess...)

      But you raise an interesting point about visibility : maybe we'll have to work more on making custom pack more easily available to players. I don't know how usable is ManiaPub now, but I think our Combo mode was only made and released using players-available tools. And there are a bunch of servers running it right now, so I guess it's a good example on how to operate.
      Anyway, working on visibility of titles is not really in my skillset. I hope someone will have good advice to give to you. Maybe make a post to get players trying your mode, and when you think it's finished, invest in Maniapub, post on reddit, get in touch with people from maniaactu or any big Shootmania website...
      --
      (>~_~)> ═╦═ ╔╦╗ <(~_~<)
      Akbalder
      Posts: 1059
      Joined: 15 Jun 2010, 11:00
      Contact:

      Re: SetPlayerWeapon

      Post by Akbalder »

      Gugli wrote:But you raise an interesting point about visibility...
      It seems that most people go in the Storm title and go on the servers where there are already many players.
      Right now, it's difficult to have enough players on a Jailbreak server. I think that it would be even worst if it was in a title pack. :(

      I think that the user interface has to be fully changed before having the title packs usable.
      Kegulf
      Posts: 122
      Joined: 21 Nov 2010, 18:51

      Re: SetPlayerWeapon

      Post by Kegulf »

      Akbalder wrote:
      Gugli wrote:But you raise an interesting point about visibility...
      It seems that most people go in the Storm title and go on the servers where there are already many players.
      Right now, it's difficult to have enough players on a Jailbreak server. I think that it would be even worst if it was in a title pack. :(

      I think that the user interface has to be fully changed before having the title packs usable.

      THIS POST MIGHT BE OFF-TOPIC.

      I was thinking the same thing.

      I have downloaded some title packs, after a LOOONG time looking for them, and when I get in, there is NO activity on the titles (online ofcourse). I would like to suggest that you add a "Custom Modes" title, that will be auto installed like Elite, Royal and Storm are, on first time instalation, where Scriptmakers can have free rains, and make insane mods, I see a Shootmania GTA lookalike comming soon xD I know that Steeffeen, creator of Obstacle Script is working on a Obstacle Title, so that will be nice.

      I feel Storm is the mods: Battle, Siege, Obstacle, InstaGIB and possible JailBreak and SpeedBall (don't know how popular this is atm)
      Thats well and nice, but as said I would love that Custom Modes title. Take the advice and get it up Nadeo :D


      And for a last point in this post, the maniaplanet interface is sadly a little hard to move around in, I find myself explaining a lot of the maniaplanet intefaces abilities and workaround to get into servers easily, but again, there had sadly not been enough talk about the interface, I do have some ideas for easy changes, but this is the wrong topic to write it in.

      Can someone maybe direct me to the right topic for interface changes? :P
      WnL»Kegulf
      TeamFounder of WnL


      Anything code related? Be patient, I am a noob :p


      My Nadeo games:
      TrackMania Nations ESWC
      TrackMania Nations + United Forever
      TrackMania 2 Canyon
      ShootMania Storm
      Trackmania 2 Stadium
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 0 guests