I'm Sp!tfire/Endless, 17 years old, living in Holland.
I used to mod Battlefield 1942 a few years ago..
Lately i've been thinking about BF1942 again, came up with an idea for a mod..
I know this is one of, if not the biggest BF1942 modding community alive, and I thought i'd share my ideas with you guys. so here you go.
![Smile :)](./images/smilies/icon_e_smile.gif)
Imagine.
A webserver running on my old dual core integrated graphics crap calculator from 2005.
/public_html/
Contains an index (index.php)
Contains a config file (config.php)
Contains a file to write to the con files (write.php)
Contains an user system (login.php, register.php, logout.php)
And many other weird files.
AND ObjectSpawnTemplates.con from my map.
huh?!??!????????????????????
People navigate to the website, create an account, and log in.
They start, for example, with 5000 cash, not ingame, just on the website.
The first thing they see on the website, is the minimap of our Battlefield 1942 map.
Imagine it has lots of roads, houses, nature, and, more. things.
All the houses are clickable.
As soon as they click on one of the houses, it will show the owner of the house, and the price. (This is just on the website, doesn't really have anything to do with our game yet. )
In this case, the house is owned by nobody, the price is $4000, we have $5000, so we will buy it.
As soon as you press the Buy button, your $4000 will be gone.
You will only have $1000 left, but.. you now own a house!
This is just simply done in PHP/MySQL. Nothing special.
On this website, you will also be able to purchase a car.
There are around 100 cars in the car lot, the cheapest car costs $1000.
We will buy the cheapest car, let's say it's a Nissan 200SX.
You now own a house, and a Nissan 200SX.
Every 24 hours, the server will do a daily repack.
WTF WAT?
Every night, I will shutdown my Battlefield 1942 server.
The language the website is written in, is called PHP.
PHP also allows you to write lines to text files.
As soon as someone purchases something on the website, like a car, a house, or a boat for example, the script will write your purchase into the MySQL database.
The MySQL database contains all the objectspawners from the map. Well, not really the spawners, just the names of the PCO it should spawn.
Everytime this happens, the script will rewrite the ObjectSpawnTemplates.con, with all the current assigned PCO's in the database.
Which means, when we bought our Nissan 200SX, the script already rewrote the ObjectSpawnTemplates!
The Spawner in front of 'our house' is called House1CarSpawner, and now has a Nissan 200SX assigned to it.
All what's left to do, is repack the map.
That's what happens every night.
I will shutdown the server, simply repack a new version of the map with the objectspawntemplates from our website, and voila.
This means, through a webserver, people will be able to purchase cool stuff online, with fake virtual money!
RuBBa_cHiKiN from the IS82 community has over 100 cars converted to Battlefield 1942.
They will all be buyable on the web based system.
People can buy houses, kits that will spawn in their houses ( with different clothes for example. )
Radio's/Music, boats, helicopters..
All done with serversidemodding, by just rewriting the objectspawntemplates.
BUT HOW CAN I GET CASHHHH????????????????????????//////////////////
Some of you might remember 'bfstats' or whatever it was called.
It was a ranked server system for Battlefield 1942.
It saves the round scores in readable files..
One round is 23 hours, after 23 hours, the web based system will read the round scores, and change those points into cash.(Be sure your ingame name is the same name as on the website! )
I was also talking to fo0k about this..
There should be some way to prevent players from stealing your car since they won't respawn.
Maybe a lock on the front door of your house.. a small tiny target that only you can see, if you shoot it, the front door will open for one minute ( First it go to a damaged mesh which is nothing, then slowly reheal itself )
In your house you will be able to enter a PCO which controls your garage door, spawns your car, etc.
This lock will require the user to repack the map too, which is kinda complex for the noobs if you ask me.. but there might be a better sollution.
I might have forgotten some things.. but this is basically what i've been thinking about lately..
EDIT:
About the locks, maybe have 4 meshes spawn infront of eachother, all four with different collision meshes.
On the website, you specify a 4 digit code for your house.
Ingame, all you have to do, is shoot the 4 numbers in the right order ( it will show as some kind of numpad texture on your door )
All 4 meshes will 'die', and voila. door is open.
I don't know if this works.. i'm too tired to think about this stuff right now heheh!
Cya tomorrow.