project reality header
Go Back   Project Reality Forums > Developer Blogs > BloodyDeed
19 May 2024, 00:00:00 (PRT)

Rate this Entry
PR 1.0 Spawn menu modification
Posted in: Coding
Posted 2013-01-06 at 19:08 by [R-DEV]BloodyDeed

Since it?s been awhile I decided to write up a new Developer Blog. This blog will be an overview of one of many new features of PR:BF2 1.0, the Kit Selection Spawn Screen. Taking you from an idea to a full on feature of Project Reality. It?s going to be a hefty read and if you?re not interested in reading a wall of text then I advise you to watch the PR:BF2 [URL=""]Devcast #2[/URL].

The whole process from the first idea to finally being able to use it properly took about 6 months with days of constant coding and some weeks off.

It started with me getting bumped to R-DEV after I assisted the team in several tasks over the years beginning with server tutorials, tester, Tech Team Lead and finally being a Lead Developer with focus on the PR Testing Team.
I wanted to get deeper involved in modding in general and was looking for a coding project besides my other daily tasks.

So I stumbled upon this public thread [url][/url] and decided to look for a similar solution for PR. Gladly [B]Hjid[/B] from [URL=""]Alpha Project[/URL] offered me his help and gave me some things to start with.
As you can see the first try was actually pretty similar to what we have now but remember this was a single button for one of 16 factions in game.
Also nothing of the back end was done yet, sure you could click the button but nothing happened.

I started a discussion in the DEV forums and we all agreed it would be a useful feature that people already had in mind but never thought of implementing it due to the large amount of work to create and maintain such a system.
The Military Advisors also strongly supported the idea mainly due to the fact it would give us 2 additional kit slots on the spawn screen.
I presented the team my first video so we were able to see it in action:
It wasn't actually working but the team liking the idea kept me motivated.
The next video gave me the impression it works even though on this state it had a few of very annoying bugs, which later exposed to be quite hard to fix:
A few weeks later, after discussions about kit type and order and some graphical suggestions by AncientMan it looked like this:
Because I couldn't imagine making this effort for every single faction I also started to program a small tool which should help me create the necessary files for each one:
and another video, if you look closely you can still spot some errors:
On this point I saw the chance to include that into 1.0 and did some stresstesting with a few selected testers. I stumbled upon a few unforseen problems which kept me busy for another couple of weeks until I came up with a proper solution.
Also kept working on the tool, I'll let the pictures do the talking :P
In the end it does everything pretty much automatically, reads out the correct weapons and creates the necessary files.

Finally a more or less finished version of a presentation video which I thought about releasing before we came up with the idea of the [URL=""]devcasts[/URL].
[SIZE="1"]Disclaimer: the videos are quite old and details might have changed in the meantime.[/SIZE]

I hope you enjoyed this blog and I gave you a small insight how things are getting developed.

Updated 2013-08-04 at 13:13 by [R-DEV]BloodyDeed
Views: 27672 | Comments: 23

« Previous Entry  |  Main  |  Next Entry »

Total Comments: 23
  1. Old Comment
    K4on's Avatar
    Posted 2013-01-06 at 19:22 by K4on K4on is offline
  2. Old Comment
    AfterDune's Avatar
    Where's the like button?
    Posted 2013-01-06 at 19:49 by AfterDune AfterDune is offline
  3. Old Comment
    Woooo G3 selectable for germans, that should certainly mix things up a bit.
    Posted 2013-01-06 at 20:01 by hobbnob hobbnob is offline
  4. Old Comment
    Bakimaster91's Avatar
    Fantastic work, as usual I`ve noticed something.... If we`re gonna have BUIS system in 1.0, what is the standard (scoped) and alternative(red dot) version of G36 for ? I am talking about german rifleman kit for example No offence, just my thought Maybe I don`t know something....
    Posted 2013-01-06 at 20:07 by Bakimaster91 Bakimaster91 is offline
  5. Old Comment
    Posted 2013-01-06 at 20:09 by ShockUnitBlack ShockUnitBlack is offline
  6. Old Comment
    BloodyDeed's Avatar
    Disclaimer: the videos are quite old and details might have changed in the meantime.
    Posted 2013-01-06 at 20:11 by BloodyDeed BloodyDeed is offline
  7. Old Comment
    Conman51's Avatar
    In your tool what does "# soldier" mean? is it the number of players needed in a squad to get that kit?

    lots of work put into this
    Posted 2013-01-06 at 20:18 by Conman51 Conman51 is offline
  8. Old Comment
    Bakimaster91's Avatar
    Rgr that
    Posted 2013-01-06 at 20:30 by Bakimaster91 Bakimaster91 is offline
  9. Old Comment
    paul161616's Avatar
    very nice read. great work devs keep it up!
    Posted 2013-01-06 at 20:39 by paul161616 paul161616 is offline
  10. Old Comment
    BloodyDeed's Avatar
    #Soldier is a relic from the past. It's unneeded in the later versions of my tool.
    Posted 2013-01-06 at 20:43 by BloodyDeed BloodyDeed is offline

All times are GMT. The time now is 02:54.