MattZ45986 / Bombsquad_mods

A repository for modifications of Eric Froemling's game, Bombsquad.
5 stars 4 forks source link

Suggestions / Tips #2

Closed ghost closed 6 years ago

ghost commented 6 years ago

Title explains everything.

Gengar-lab commented 6 years ago

@MattZ45986 Can you create a mod in which we can race while flying?

Like : to race,we Fly through the track in BigG Map.

Or

Like : Flying Race in Big G.

Gengar-lab commented 6 years ago

@MattZ45986 Can you create a mod in which the powerup boxes powers get switched or swaped

Like : If we take heath powerup box it will give us Sticky bombs , If we take Freeze Powerup box , It will give us Curse.

MattZ45986 commented 6 years ago

@Benefit-Zebra , good ideas. I'll start looking into the flying race. For the powerups, it's easy enough to swap textures on a box. The only thing is, I make minigames, and just swapping powerup rewards doesn't translate well into a fun minigame. If you have an idea, please feel free to share. I appreciate your feedback. About the mod issues, things are working for @Esie-Eyen , so I'm not sure what to tell you.

Gengar-lab commented 6 years ago

@MattZ45986 Please Inform us , when you finish making flying race.

I think powerup swap mod is a good idea since none of the player will be knowing which powerup they are taking and what will happen to them.The Player will have to Dare to choose which powerup to take.

MattZ45986 commented 6 years ago

I see how it could be fun, @Benefit-Zebra, but if players have no sense of certainty, after a few bad experiences they won't grab powerups but just stick to the game. What I was asking before was if you could think of a minigame where swapping powerups would work directly with gameplay.

Gengar-lab commented 6 years ago

@MattZ45986 Can you make SimonSays for Team Game?

ghost commented 6 years ago

@Benefit-Zebra I dont think it is a great idea, this is somewhat like "Lucky Block Mod" I first see this mod in game called Minecraft. And it might ruin the game experience, I think it is okay if its a minigame and do not affect the vanilla game.

I think you want a minigame with a lucky blocks and a deathmatch or elimination.

ghost commented 6 years ago

@MattZ45986 I have idea for a new minigame.

How about a minigame which players should have each flag, each flag should have a timer. When the enemy touches / grabs the flag it reduces the timer and when it reaches 0 second you should be killed. The player who lasts the game or the one who is alive is the winner. It is somewhat a protect your flag minigame, if possible make it supports the Team and FFA mode.

Gengar-lab commented 6 years ago

@Esie-Eyen Your Idea is Good.

MattZ45986 commented 6 years ago

That is a good idea, @Esie-Eyen , but I'm afraid something like that has already been done. Check out Protection.

https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/blob/master/mods/Protection.py

Instead of a flag it is a clone that you have to protect. I don't want to copy @joshville79 too closely.

Gengar-lab commented 6 years ago

@MattZ45986

https://youtu.be/fiXsEwnj6Gk

Can you try to make this mod??

Its not available in That Youtube Channel.

MattZ45986 commented 6 years ago

@Benefit-Zebra , I'm not entirely sure what the point of the mod is. I'm guessing that it is a reference to the atomic bomb. So is it just a death match with ultra-explosive bombs? Because that is very simple to make.

Gengar-lab commented 6 years ago

@MattZ45986

The Special is the players are small in that mod and the bombs are ultra-explosive and the hit points of player are low.

ghost commented 6 years ago

@MattZ45986 Any tips for modding? How did you learn? Did you start by learning python or ditectly learning the mods in BombSquad? I think I should start learning too, I learned how to tweak the game in 2017 when the JRMP is the only modpack out there. I stop playing BS for months, and here after I came back there are so many modpacks, only few of them are unique and great.

= Mod Suggestion =

Gengar-lab commented 6 years ago

@MattZ45986

Can you create a mod similar to "King of the Hill" in Bombsquad , but here the player on top instead of shield and boxing gloves , Gets Curse.

This would make easy for other players to kill the player.

And if other player is also on the top then he will also get curse.

Please Think About this.

ghost commented 6 years ago

Hello @Benefit-Zebra since your request is very easy, I try to make the mod you request. At the start of the game all players got a curse, as the one you said so it will be easy to kill players. Its very simple I just modified the KingOfTheHill.py to make this mod https://github.com/Esie-Eyen/BSMods/blob/master/CurseOfTheHill.py

ghost commented 6 years ago

@MattZ45986 @Benefit-Zebra Im currently working on a android app. It features BombSquad mods.

MattZ45986 commented 6 years ago

@Esie-Eyen , I like that idea for a mod. It presents a fun situation with a lot of possible outcomes.

I actually learned python first and was looking for someplace to use it. I had been playing Bombsquad, and when I figured out that the mods were in python I had to check it out. I took a while to make the first few, but after that it was fairly easy to make mods. There is a steep learning curve since you need to familiarize yourself with the API.

I'm glad to hear that you are taking it up, it's even better that you are making an app dedicated to it. If you put it on GitHub I'll follow it and try to check it out once in a while.

ghost commented 6 years ago

@MattZ45986 Hello Im making a mod which supports flag grabbing or touching. Its just a simple mod named Rainbow Flags, is it possible to change the message when I touch a different flag?

def handleMessage(self,m): if isinstance(m,bs.FlagPickedUpMessage):

In this part it supports all of the flags, I want to change things by touching different kind of flag. Example black flag kills you, rainbow flags gives you score. Since that code support all of the code, its hard to separate the black and rainbow flags rewards. So it is possible to separate two flags at once in a game?

One more thing where can i get some color codes for python? And does the position is X, Y, Z?

color=(?,?,?) position=(?,?,?)

joshville79 commented 6 years ago

Look at the API documentation... The FlagPickedUpMessage has two attributes: a pointer to the bs.Flag that was picked up and a pointer to the bs.Node that picked it up. You don't need to change the message, you just have to read it.

On Mon, Aug 20, 2018 at 5:19 PM Esie-Eyen notifications@github.com wrote:

@MattZ45986 https://github.com/MattZ45986 Hello Im making a mod whic supports flag grabbing or touching. Its just a simple mod named Rainbow Flags, is it possible to change the message when I touch a different flag?

def handleMessage(self,m): if isinstance(m,bs.FlagPickedUpMessage):

In this part it supporta all of the flags, I want to change things by touching different kind of flag. Example black flag kills you, rainbow flags gives you score. Since that code support all of the code, its hard to separate the black and rainbow flags rewards.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MattZ45986/Bombsquad_mods/issues/2#issuecomment-414466763, or mute the thread https://github.com/notifications/unsubscribe-auth/AYlwYB1_PC0_ahRPv6l9bQmdxc5FYIjEks5uSyfRgaJpZM4V5Z7q .

-- I haven't slept for 10 days. Because that would be too long. -Mitch Hedberg

ghost commented 6 years ago

I dont get it much, I tried reading the API. Its hard I still cant separate the two flags at the same time, unless I remove the first and spawn the next one. I can only provide one message or reward each flag. Help?

joshville79 commented 6 years ago

The message itself is an object. It has contents. The message itself contains information about Which flag sent the message and which node picked it up. I am going from memory here, but you probably need to study the script for the keep away game. It has to handle the flag picked up message. It has to find out which node picked up the flag, so that it can increment the countdown timer. You can find out which flag was picked up in the same way that it figures out which node picked up the flag.

On Mon, Aug 20, 2018, 6:41 PM Esie-Eyen notifications@github.com wrote:

I dont get it much, I tried reading the API. Its hard I still cant separate the two flags at the same time, unless I remove the first and spawn the next one. I can only provide one message or reward each flag. Help?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MattZ45986/Bombsquad_mods/issues/2#issuecomment-414486866, or mute the thread https://github.com/notifications/unsubscribe-auth/AYlwYDTgNWaClmebc4cqSMQpF23PT-ueks5uSzstgaJpZM4V5Z7q .

ghost commented 6 years ago

I will try making the mod without using any hard codes, since I will not using any hard codes it will be long. If you have time can you please see it and make it short if possible?

MattZ45986 commented 6 years ago

@Esie-Eyen, the way I handle my flags is to store them in a class variable: self.flag1. Then when there is a flag picked up message use ( m.flag is self flag1 ) to determine whether the flag picked up is indeed the flag stored in the variable.

ghost commented 6 years ago

@MattZ45986 What do you mean? Example I made this 2 flags.

self._red = bs.Flag(position=(0,3,-1.5),touchable=True,color=(255,0,0)) self._orange = bs.Flag(position=(0,3,1.5),touchable=True,color=(255,165,0))

I want the two flags to get a different messages when I grab them. How do I do that? As I said earlier when I use the FlagPickUpMessage the two flags get the same messages.

MattZ45986 commented 6 years ago

In your case in the handleMessage method when the FlagPickedUp message is detected write an if statement:

if m.flag is self._orange: (do something) elif m.flag is self._red: (do something else)

That way the commands for the red and orange flags stay separate

ghost commented 6 years ago

@MattZ45986 Few Questions:

-Code for getting the flag/player position when it grabs the flag?

-Code for making the player die/freeze/curse when it grabs the flag?

-Code for scoring when it grabs a flag?

This is mostly the core idea of the mod, if you can assist me I thank you.

MattZ45986 commented 6 years ago

To find position you have to have a reference to the target player. If you're using the flag picked up message use m.node. Then the variable that gives position is m.node.positionCenter.

To curse a player use m.node.getDelegate().curse()

To freeze a player send the PlayerSpaz object a ShouldFreeze message.

To kill the player send it a DieMessage .

Hope that helps. You can go through my mods to find code examples.

ghost commented 6 years ago

@MattZ45986 Hey thanks again it works perfectly fine.

I use this code: m.node.handleMessage(Message)

Im gonna ask again:

Some questions can be answered by editing the in-game scripts, but still I want to learn modding BS not just making it easy by modifying the in-game scripts.

You dont need to answer it all.

Hello one more thing, since we are just discussing mods and not suggesting or giving tips... If possible you can right your answers here https://github.com/Esie-Eyen/BSMods/issues/1(url) A discussing page for mods.