Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

BATTLEFIELD 2

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
chris666uk1
Posts: 2
Joined: September 21st, 2005, 1:13 pm

BATTLEFIELD 2

Post by chris666uk1 »

any chance of a battlefield 2 plugin pls
choppergirl
Posts: 9
Joined: December 30th, 2009, 8:30 pm

Re: BATTLEFIELD 2

Post by choppergirl »

I might write such a plugin someday... the question is...

How do you write to some global variable in Windows, so that it can be read between programs. (with the registry?) The two programs you want to share a string of data between in real time being... the game client, and your custom smartie game stats dll.


In other words, install in the game client, (in the case of BF2 or BF2142), a python script, that writes a string to some global Windows string (registry thing - is this possible), of such game variables as player name, last player killed, weapon holding, amount of ammo, score, number of kills, health, number of deaths, and so on... anything that changes and would be wanting to see displayed concurrently while playing the game.

Then compile a smartie dll plugin, that reads this string from memory, and parses it and returns specific values from it back on request whenever called.


I'd need to know how to write to a global registry or other such variable from python, and then read from it from whatever language a universal smartie game stats dll was compiled in.


You could have real time information displayed on your LCD while you were playing the game, and the same code or concept could be used to add other game patches into other game clients to write to the same registry value (or whatever).

You might even be able to set your refresh fast enough, so you'd get a AMMO indicator countdown displayed on LCD affixed under your monitor, much like the AMMO counter on the automated gun from the movie Aliens...

http://www.youtube.com/watch?v=KkjVy7RzASE

http://www.youtube.com/watch?v=LlSG1H0w ... re=related


I would code it up so it was a generic dll, that could pull any registry value out and return it... and then any possible program in the world that could write to the registry, could have data from it displayed on SMARTIE. This seems a big problem, as most programs in the world aren't coded to share internal data of them with anybody typically.

CHOPPERGIRL
http://choppergirl.air-war.org
Post Reply