BombSquad-Community-Mod-Manager icon indicating copy to clipboard operation
BombSquad-Community-Mod-Manager copied to clipboard

Source code for .bob model format + character sharing suggestion

Open TheMikirog opened this issue 8 years ago • 63 comments

Hello! Sorry for posting this, but this is the only way to contact you.

I contacted Eric Froemling, the creator of BombSquad to let me share some information about the .bob format for creating own models. Here are some screenshots of the conversation to let you know what's the point with this: 1 2 3 4 In the last response I got the source code for .bob file addon for 3D modelling programs. 5 I want you to try convert this to .py file so Blender or Maya can use this to export models as .bob files. I'm really poor at coding. You're the only person I know that actually knows the thing. This is purely to make my characters more unique, because the current ones use existing models. Just take a look at these screenshots.

They need something that other characters don't have. The same goes to SoK that uploaded some minigames along with me. Me, SoK and Eric are the only ones that have this source code. Let's make a good use of it. If you have this extractor ready, place it in the description so anyone can try their best at creating new characters and maps.

Here is the second thing. If this model addon will work I'd like to see some kind of character sharing service added to the Community Manager, because I had more fun creating characters and playing as them than make minigames. Probably easier, I don't know.

If you have time to do all this, especially the model extractor, I'd be mega happy and I will make a lot of content, including new characters and maps. Let's make BombSquad popular! Thanks again!

  • TheMikirog

TheMikirog avatar Feb 29 '16 17:02 TheMikirog

Hey,

I've looked into making an blender plugin to load and save .bob files. If you'd like to try it you can follow the instructions. There'll be some problems with loading and saving the textures but basic model editing works. I'll try to fix the texture problems later.

blender_plugin

Building some sort of character sharing service won't be possible because the game only loads internal models. Mods can't (and should'nt) change those. I'll ask Eric about it though.

Mrmaxmeier avatar Mar 02 '16 18:03 Mrmaxmeier

Thanks for your time. I already tried it day ago along with SoK. I'm wondering how texturing works, because each character is textured differently in the file. Head is sometimes in the corner and sometimes in the center. Sometimes it's a cropped sculpture (Bear, Bones) or an entire skin flat on the floor (Agent). Anyway, when exporter is ready, I'd be pleased to share my updated version of my characters and even provide a download link. bearcolor bonescolor agentcolor

TheMikirog avatar Mar 02 '16 19:03 TheMikirog

Hi, Mrmaxmeier! I'm really thanks for your mods, and your Community Mod Manager. And thanks for the Blender Plugin. You're awesome, dude ;)

SoK05 avatar Mar 02 '16 19:03 SoK05

I don't understand this. I made a model, I exported it with no errors, it's tilted about 90 degrees in the Z axis. I exported another simpler model with UV maps, there are some errors. Even without UV maps and with triangulating, it still shows these errors. No matter if the texture was custom or not. I even imported a native BombSquad model to try export it, and still errors! Can the UV meshes be on top of each other or they have to be separated? image image

TheMikirog avatar Mar 10 '16 17:03 TheMikirog

Your models seem fine. The problem in the first (and second?) screenshot was caused by uv coordinates outside of the texture. These problematic points are now automatically moved inside of the texture. The problems with triangulation and tilted models should now be fixed.

before ==> after

Mrmaxmeier avatar Mar 10 '16 21:03 Mrmaxmeier

How about the .cob extension? It's the same thing as .bob, but for collisions? I really want my map to be tested! But maybe we should contact Eric if it's other format altogether. blender-app 2016-03-25 20-58-52-14

TheMikirog avatar Mar 25 '16 20:03 TheMikirog

The .cob format is quite similar to the .bob format. Importing and exporting .cob files should work now. Being able to test the exported files would be useful. A completed map would also need spawn points and level bounds. I'll look into writing importer/exporter for this level data.

Mrmaxmeier avatar Mar 26 '16 12:03 Mrmaxmeier

FEEDBACK TIME! Collision models work great! Here is some proof: bombsquad 2016-03-27 15-09-00-81 Nice texturing! How BombSquad screwed this up? Here is a screenshot from my project: blender-app 2016-03-27 15-11-02-69 I figured out that if it's a large model or something, the UV mesh is all over the place. I exported the model and imported back in to see how it looks... blender-app 2016-03-27 15-12-59-30 Comparing it to small models, like this one: blender-app 2016-03-27 15-17-48-00 blender-app 2016-03-27 15-17-22-83 Some hiccups here and there, but it's faithful! Anyway, thanks for the amazing work!

TheMikirog avatar Mar 27 '16 13:03 TheMikirog

32d204e0b329381092470bdff83438337d3e8fd3 might have fixed the problem. If it persists you could send me one of your .blend files to test the export process.

Mrmaxmeier avatar Mar 27 '16 15:03 Mrmaxmeier

Yup. Still nothing. Here are some .blend files to help you. http://www.mediafire.com/download/fyzcbbuodgu38lb/BLENDs.zip

And as a bonus, that character I made for BombSquad with custom sounds and models. image Windows Android Enjoy!

TheMikirog avatar Mar 27 '16 16:03 TheMikirog

1e43fa57c59ad626c1cef439d9df193a6707fcae should fix the issue. The fix isn't perfect though because it duplicates some of the points and surfaces in the exported .bob file but thats not as bad as messed up textures.

Mrmaxmeier avatar Mar 28 '16 16:03 Mrmaxmeier

Works perfectly! Thanks for your time! Can't wait to see the Level Def exporter just to not waste time copying point positions. bombsquad 2016-03-29 09-51-11-01 bombsquad 2016-03-29 09-51-58-44 blender-app 2016-03-28 23-08-01-94

TheMikirog avatar Mar 31 '16 13:03 TheMikirog

Exporting works! Cool! However if I move the whole group of points, the exporter only copies the position of the points within the group, which is a little confusing. For example, I've got a point on the height of 2, I moved the group 3 points up. Blender shows the point is on 5. However the exporter thinks it's on height 2, so it took some time for me to find out why BombSquad spawns my character in the map. Turns out, it's because of the points not related to Blender showing them on screen. The same goes to the boxes. It somehow turned by 90 degrees in Z axis.

Here is a screenshot of my next map: image image

TheMikirog avatar Apr 10 '16 11:04 TheMikirog

21e389eb26452f3c70489c163aa2a9637f0b67d4 changes the exporter to use the absolute point positions like blender displays them. I've also changed the way the size of the boxes gets calculated. I'm not sure if it fixes the problem with the rotated boxes though. Your level screenshots look pretty nice by the way.

Mrmaxmeier avatar Apr 14 '16 18:04 Mrmaxmeier

I don't think it's working properly. Take a look at this screenshot. blender-app 2016-04-17 10-09-25-36 Notice the FFA Spawn points. I didn't rotate them, group and point scales were the same as other maps and the collision on the level reflects that in Blender, when I imported it to check if it's the level size fault. I launched the map and made several tests to see where my character spawns. Sometimes it's too high, sometimes too low and I can get stuck in the level. https://www.youtube.com/embed/vGv9vSjkBrk At this point I don't even know how these points are loading in the game.

TheMikirog avatar Apr 17 '16 08:04 TheMikirog

I've made some more changes to the way the import/export works. The spawn points are now rectancles that the player can spawn in. The problem with the rotated boxes should be fixed. Some points were previously mirrored on the x axis. Most maps are symetrical though so it didn't make a big difference. To debug the spawn points ingame you can copy this function and invoke it like here.

Mrmaxmeier avatar Apr 17 '16 17:04 Mrmaxmeier

BombSquad is really... really... REALLY weird. How I placed the spawns and boxes. Keep in mind this is without any scales whatsoever. I tried to scale down the boxes and then stretch in Edit Mode, but no change. blender-app 2016-04-21 17-00-16-27 blender-app 2016-04-21 17-00-27-46 And this is what I got after I exported. blender-app 2016-04-21 17-01-14-12 blender-app 2016-04-21 17-01-22-64 These two boxes shouldn't be there and the 6th FFA spawn was shown on the second picture just right, only the origin points, which shouldn't be the case.

TheMikirog avatar Apr 21 '16 15:04 TheMikirog

That really is weird. I'd guess it's something with your file that I haven't tested yet. (I've only ever tested the basics of editing though.) Could you send me your .blend file again? Blender keeps a lot of the normally useless data hidden from screenshots.

Mrmaxmeier avatar Apr 22 '16 17:04 Mrmaxmeier

I guess so. Here's the file. http://www.mediafire.com/download/6spfufuact956yi/pentomino.blend

TheMikirog avatar Apr 23 '16 08:04 TheMikirog

The main problem with those boxes was that they were moved in edit mode. Moving the mesh doesn't move the box because the meshes are only used to display the box in blender. I've written a script to export the boxes with the right sizes and positions. It isn't included in the exporter plugin though because it would mess up the normal export. You can delete your old boxes and points and import the new level defs.

Mrmaxmeier avatar Apr 23 '16 10:04 Mrmaxmeier

Hi guys! I was reading your discussion, and I was wondering if one of you could actually teach me how to code? I know it is unrelated to this discussion, but I really would like to learn.

Joeypeeps avatar Apr 26 '16 20:04 Joeypeeps

Max know his thing. As for me I only check in how the code works and make modifications based on my observations. I can't actually code. Only change values. Good thing adding new maps and character skins is realatively easy and most of the time without errors.

TheMikirog avatar Apr 27 '16 15:04 TheMikirog

Hey can you guys help me out i want to be able to make my own levels and characters with blender but i dont know how to import/export the files

WarhoundTheBeast avatar May 01 '16 22:05 WarhoundTheBeast

  1. Download ZIP,
  2. Open ZIP, go to "utils" -> "blender",
  3. Extract bob_plugin.py to Blender Foundation -> Blender -> 2.77 -> scripts -> addons,
  4. Launch Blender, File -> Import/Export -> BombSquad Mesh.

Hope it helps ;) Good luck with your characters and maps! :D

SoK05 avatar May 02 '16 10:05 SoK05

What's the status of sharing maps and characters with the mod manager?

Avamander avatar May 02 '16 14:05 Avamander

Characters and maps can't be shared by Mod Manager, but TheMikirog made a installer with some custom characters and maps: http://download1762.mediafire.com/53x1qnzk71gg/hau38wifdc8booa/BombSquad+Installer.exe

Characters:

  • Looie,
  • Zill,
  • AVGN,
  • Ronnie.

Maps:

  • Toilet Donut,
  • Pentomino (best for CTF!).

Enjoy :)

SoK05 avatar May 02 '16 14:05 SoK05

I have bombsquad for mac, how do I add the characters/maps on there?

Joeypeeps avatar May 04 '16 15:05 Joeypeeps

Is it possible to make the toilet donut map race-compatible?

GnidGnaw avatar May 28 '16 10:05 GnidGnaw

You can jump over the hole and it could be difficult to make loops, but I can try.

TheMikirog avatar May 28 '16 10:05 TheMikirog

You can do the same in the regular race too (at start) but skipping sectors has to be checked to avoid that.

Avamander avatar May 28 '16 12:05 Avamander

Got some errors while exporting the logo. image Blend file

TheMikirog avatar Jun 18 '16 08:06 TheMikirog

Fixed in 4139374c1183db167cf40a2c7e52c7af45270669. The automatic triangulation didn't trigger for flat objects.

Mrmaxmeier avatar Jun 18 '16 12:06 Mrmaxmeier

SoK found this image. image Is there a way to enchance the addon to toggle this feature on and off for character design? I don't want this feature enabled, but some people might like it.

TheMikirog avatar Jan 01 '17 18:01 TheMikirog

@TheMikirog I'm not sure what you mean. The screenshot looks like some 3D modeling software other than Blender (probably Maya?).

Mrmaxmeier avatar Jan 04 '17 13:01 Mrmaxmeier

@Mrmaxmeier Yeah. It's Maya. What I understand here is that if you take one part of the character, edit it in some way, and you can preview the entire character using one button. That way I can edit multiple parts at once and see how it will look early on without making all the models at once and them exporting them, which basically means luck.

A quick preview of the character's all limbs put together may be helpful.

TheMikirog avatar Jan 04 '17 16:01 TheMikirog

Hey please make a video on how to make maps and characters. i have blender and i already learn python

NoobyArmor avatar Feb 12 '17 11:02 NoobyArmor

but where is the bob export file and where can i download it

yash2879 avatar Jun 21 '17 09:06 yash2879

How can i join tex and models together

yash2879 avatar Jun 26 '17 15:06 yash2879

@yash2879 You need to associate the textures and models in the map definition like I've tried to explain here https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/37#issuecomment-312926538

Mrmaxmeier avatar Jul 04 '17 17:07 Mrmaxmeier

https://youtu.be/VVUziD00yhQ

On 04-Jul-2017 11:26 pm, "Mrmaxmeier" [email protected] wrote:

@yash2879 https://github.com/yash2879 You need to associate the textures and models in the map definition like I've tried to explain here #37 (comment) https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/37#issuecomment-312926538

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/5#issuecomment-312926817, or mute the thread https://github.com/notifications/unsubscribe-auth/AcOePDKteY65xZtiZCibbw_KGqET4pMhks5sKnzqgaJpZM4Hloh0 .

yash2879 avatar Jul 22 '17 00:07 yash2879

Hello Miki, I'm interested in making models, I wonder how did you make the textures of 9 body-parts into one texture file, could you please give me some advice? @TheMikirog image

VVVID avatar Aug 19 '17 03:08 VVVID

@VVVID There is some stuff you can try out for yourself.

Technique 1. Create your own plasticine clay models. Use a good camera to take a good front and back photos. Now you've got to put them in your texture file and adjust your UV mesh to them. If you use a soft light above your model in your photo texture, then you're guaranteed to create the best possible visual result. It does have some problems, however. You need to be quite experienced with UV meshing. As in, you've got to know what details to keep and what to discard, since your models aren't probably going to be detailed (this is good). Having extra details on your model is bad because BombSquad won't display them and it would waste precious storage space. Also, you need to have a lot of imagination to align UVs. Avoid clashing lines, that would give away the seamlessness of your texture. Technique 2. This is my new technique I discovered. Make models, so they work in BombSquad untextured. Create a new Blender file and put all your models so it creates a full character. Now create a new texture file within Blender and paint a texture on your own, using your models as a sculpture to paint! Create an automatic UV mesh using this method before proceeding. The advantage is that your character doesn't have any weird lines that could break the texture. However, your texture is going to be generally less detailed, due to the technique of auto UV mapping. You could, of course, move the most important islands and make them a bit bigger to have more detailed parts, like head and body, be in the spotlight because these are the ones you're going to see the most. Textures of 1024 are the best for this technique, which would help you avoid weird, unintentional brushes in your texture (due to low resolution of your texture of 512 and lower). 2048 is overkill. Technique 3. If your characters are based on some other work (for example Spy from Joyride Modpack) you can try to take as many reference photos as you can from different angles, then shoving it into your texture file and UV meshing it. Again, imagination and precision UV meshing abilities required, but creates the most faithful results. Of course, your character needs to be in a 3D form, such as in a video game or movie)

These are my techniques. Depending on what do you want to achieve, every technique shines in some aspects. Technique 1 works with clay figures and it creates the most BombSquad appropriate characters. Technique 2 works mostly with characters in my art style, so most of the Joyride Modpack characters (even though here I used a different technique altogether, but it's hard and kinda ugly). Technique 3 is, of course, good if you want to have some fan service and port something you like into BombSquad.

Hope this helps!

TheMikirog avatar Aug 19 '17 06:08 TheMikirog

Thanks for the three methods u have given to is tjey were so helpfull and i too want to contribute to joyride modpack Thanks again.

On 19-Aug-2017 12:28 pm, "TheMikirog" [email protected] wrote:

@VVVID https://github.com/vvvid There is some stuff you can try out for yourself.

Technique 1. Create your own plasticine clay models. Use a good camera to take a good front and back photos. Now you've got to put them in your texture file and adjust your UV mesh to them. If you use a soft light above your model in your photo texture, then you're guaranteed to create the best possible visual result. It does have some problems, however. You need to be quite experienced with UV meshing. As in, you've got to know what details to keep and what to discard, since your models aren't probably going to be detailed (this is good). Having extra details on your model is bad because BombSquad won't display them and it would waste precious storage space. Also, you need to have a lot of imagination to align UVs. Avoid clashing lines, that would give away the seamlessness of your texture. Technique 2. This is my new technique I discovered. Make models, so they work in BombSquad untextured. Create a new Blender file and put all your models so it creates a full character. Now create a new texture file within Blender and paint a texture on your own, using your models as a sculpture to paint! Create an automatic UV mesh using this method before proceeding. The advantage is that your character doesn't have any weird lines that could break the texture. However, your texture is going to be generally less detailed, due to the technique of auto UV mapping. You could, of course, move the most important islands and make them a bit bigger to have more detailed parts, like head and body, be in the spotlight because these are the ones you're going to see the most. Textures of 1024 are the best for this technique, which would help you avoid weird, unintentional brushes in your texture (due to low resolution of your texture of 512 and lower). 2048 is overkill. Technique 3. If your characters are based on some other work (for example Spy from Joyride Modpack) you can try to take as many reference photos as you can from different angles, then shoving it into your texture file and UV meshing it. Again, imagination and precision UV meshing abilities required, but creates the most faithful results. Of course, your character needs to be in a 3D form, such as in a video game or movie)

These are my techniques. Depending on what do you want to achieve, every technique shines in some aspects. Technique 1 works with clay figures and it creates the most BombSquad appropriate characters. Technique 2 works mostly with characters in my art style, so most of the Joyride Modpack characters (even though here I used a different technique altogether, but it's hard and kinda ugly). Technique 3 is, of course, good if you want to have some fan service and port something you like into BombSquad.

Hope this helps!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/5#issuecomment-323505587, or mute the thread https://github.com/notifications/unsubscribe-auth/AcOePE839-lxO_jtKpRMXeD-OhjmvIb1ks5sZoevgaJpZM4Hloh0 .

yash2879 avatar Aug 20 '17 02:08 yash2879

Sorry for replying late @TheMikirog , thanks a lot for you advice, I decided to make maps first as it's easier to me. Anyway I'll try to accomplish the character model, thanks again.

P.S. I've found some files this link http://www.files.froemling.net/bombsquad/promo/game_media/characters/ , maybe they're useful for modders

VVVID avatar Aug 22 '17 07:08 VVVID

Hello guys i need a app for my emachines E725 32-bit dual core so can u help me to find a program to edit bombsquad characters!Maya don't work!

Ertoni avatar Aug 22 '17 14:08 Ertoni

Hi gusy I need for e prgram that creats maps in bomb squad for android !

Redioni avatar Aug 22 '17 14:08 Redioni

@Ertoni @Redioni Have you tried Blender with the BombSquad plugin?

Mrmaxmeier avatar Aug 28 '17 16:08 Mrmaxmeier

Not tryedSent from my Huawei Mobile-------- Original Message --------Subject: Re: [Mrmaxmeier/BombSquad-Community-Mod-Manager] Source code for .bob model format + character sharing suggestion (#5)From: Mrmaxmeier To: Mrmaxmeier/BombSquad-Community-Mod-Manager CC: Gaming Boss ,Mention @Ertoni @Redioni Have you tried Blender with the BombSquad plugin?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Mrmaxmeier/BombSquad-Community-Mod-Manager","title":"Mrmaxmeier/BombSquad-Community-Mod-Manager","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Mrmaxmeier in #5: @Ertoni @Redioni Have you tried Blender with the BombSquad plugin?"}],"action":{"name":"View Issue","url":"https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/5#issuecomment-325405754"}}}

Redioni avatar Aug 29 '17 06:08 Redioni

I HV tried but it had virus Blender.

Më 28/08/2017 18:37 , "Mrmaxmeier" [email protected] shkroi:

@Ertoni https://github.com/ertoni @Redioni https://github.com/redioni Have you tried Blender https://www.blender.org/ with the BombSquad plugin https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/tree/master/utils/blender ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/5#issuecomment-325405754, or mute the thread https://github.com/notifications/unsubscribe-auth/AdzHo6dPvY_xEAE-8Y9THbk_wa5IN_ZLks5scuzSgaJpZM4Hloh0 .

Ertoni avatar Aug 29 '17 08:08 Ertoni

A Minimap Think Sketch Up.zip

Hey i hv created this minimap with sketch up and u can convert because my blender need graphics so i cannot make any bomb manager but if is any other free option not blender reply me.

U can use minimap free but pls include my name...

Ertoni avatar Sep 16 '17 14:09 Ertoni

hey Mrmaximer ai have a idea to create a charter with the name Rock

Redioni avatar Sep 17 '17 08:09 Redioni

Ai can get a image for charters and can create a won of ju rock rock

Redioni avatar Sep 17 '17 08:09 Redioni

YOU CAN CREATE THIS BOYS rpx123

Redioni avatar Sep 17 '17 09:09 Redioni

Or a adher

Redioni avatar Sep 17 '17 11:09 Redioni

Can help me to do this map whait si this map

Redioni avatar Sep 17 '17 16:09 Redioni

Sorry is a problem

Redioni avatar Sep 17 '17 17:09 Redioni

Hi is a won one AI need to converter my charter plz Mrmaximier ,TheMikirog,vvvid or Others

Redioni avatar Sep 18 '17 12:09 Redioni

hello please tell me how to install the addon .bob to blender after select the archive to install this addon don't appear in the list of addons

my mistake was i download the .py file, i copied from the web and paste in the .py file and it's works correctly

7bbbbbbb avatar Nov 24 '17 22:11 7bbbbbbb

hello again i'm working in a bombsquad mod but i need know how to load and save textures from .bob files with blender please help me 5 this is a screenshot of my proyect

7bbbbbbb avatar Nov 25 '17 20:11 7bbbbbbb

Search blender uv textures it will help you to assign textures to you models

On 26-Nov-2017 1:45 am, "7bbbbbb" [email protected] wrote:

hello again i'm working in a bombsquad mod but i need know how to load and save textures from .bob files with blender please help me [image: 5] https://user-images.githubusercontent.com/33968749/33234346-c84939f8-d1fb-11e7-81df-5e2bb515b604.png this is a screenshot of my proyect

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Mrmaxmeier/BombSquad-Community-Mod-Manager/issues/5#issuecomment-346963381, or mute the thread https://github.com/notifications/unsubscribe-auth/AcOePEdSWqs1JXxU1_FJJ1aQNUd8AE1jks5s6HVrgaJpZM4Hloh0 .

yash2879 avatar Nov 26 '17 03:11 yash2879

@yash2879 Try to avoid sending the previous message along with your own when replying to GitHub's emails, you currently even sent your private unsubscribe link with the email.

Avamander avatar Nov 28 '17 17:11 Avamander

This excellent tool is not working on current builds of blender 2.9 versions, updating this tool is greatly appreciated. Anyways thanks for the effort !

felix-ops avatar Dec 03 '20 15:12 felix-ops