Quantcast

Jump to content

» «
Photo

Bank Account

GTA4 .NET script mod
51 replies to this topic
AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#1

Posted 27 May 2011 - 01:22 AM Edited by AngryAmoeba, 19 October 2013 - 10:37 PM.

BankAccount_ATM.jpg
 
WHAT IT DOES
This script lets you store money in a bank account and earn interest.

- Press B to mark the nearest ATM on the map.
- Press B at an ATM to start a transaction, and press B again to complete it.
. . . . Press A and D to move money to and from the account.
. . . . Press W and S to adjust how much money is moved at a time. (Hold Shift to adjust faster, Control to adjust slower.)
. . . . Press X to reset the transaction.
- Your account balance earns 1% interest per day.

HOW TO INSTALL
This is a script for HazardX's .NET scripthook. Just extract the files into the 'scripts' folder of the .NET scripthook.

----------------


v1.3.4 — last updated October 13, 2013

ADF.LY DOWNLOAD
If you'd like to support me and my mods,
take 5 seconds and use this download link!

NORMAL DOWNLOAD
If you're in a hurry, use this one.


----------------

TIPS
- The less cash you carry with you, the less money you'll lose from dying or being arrested.
- The more money you have in your bank account, the more interest you'll earn.
- The maximum cash you can carry is $999,999,999 (this is the game's limit).
- The maximum account balance is $2 billion.
- This map shows all the ATMs I could find.
- The interest rate is about 365x higher than real life.
- The BankAccount.ini file contains several settings, including these options that are off by default:

. . . . autosave after you use an ATM or earn interest.

. . . . lose all cash when you die or get arrested.

. . . . use in-game hours and minutes for the countdown to earning interest.
- Type "reloadini" in the console to load new INI settings without stopping the script.

KNOWN BUGS
- Your bank balance only saves when you use a bed to save the game, not when the game autosaves (except when you use the SaveAfterUsingATM or SaveAfterInterest INI settings, which are off by default).
- Your bank balance is shared across different savegames, and you'll earn interest from loading older saves, because the interest is based on how many days have passed in the world.
- If you find any ATMs that don't get marked on the map from far away, please let me know and I'll add them.
- When you view the ATM screen (by pressing E):
. . . . Your cash is displayed for a moment before showing your balance.
. . . . Can't display more than the max cash amount, $999,999,999.
. . . . The cash displayed in the top-right counts up/down obnoxiously.

----------------


CHANGE LOG
v1.3.4 — October 13, 2013
- Changed INI settings:
. . . . For saving data: They also autosave the game.
. . . . For losing money: Negative numbers make you lose ALL of your cash/balance.
- Added INI option to show cash instead of balance on ATM screen (as in vanilla).
- Reduced max account balance to $2 billion to simplify code and avoid bugs.
- Fixed crash if you typed a balance over 4,294,967,295 into BankAccount.dat.
- Minor cleanup.
 
v1.3.3 — September 28, 2013
- During transactions, the interest countdown is in real minutes and seconds.
- Added UseGameTimeCountdown INI option to show in-game hours and minutes instead.
- INI settings for losing money on death/arrest let you choose how much you lose.
- Added INI settings to lose money from your account when you die or get arrested.
- Added minimum wanted level INI settings for losing money on chase death.
- Renamed INI settings for saving data to clarify that they don't save the game.
- Divided INI into sections: Bank Account, HUD & Sound, and Keys.
- Reduced bug: When balance is huge, ATM screen shows $999999999 instead of $0.
- Minor cleanup.
 
v1.3.2 — September 2, 2013
- Transactions show how much interest you'll earn next, and in how many hours.
- Added ShowNextInterestInfo INI option.
- Added "reloadini" console command (gets settings from the INI without stopping the script).
- DepositKey and WithdrawKey can be held down to move money faster.
- Minor cleanup.
- Retroactively renamed versions 1.2.8 and 1.2.9 to 1.3 and 1.3.1.

v1.3.1 hotfix — June 22, 2013
- Fixed bug: When LoseCashOnChaseDeath was enabled and you died outside of a chase, the next chase made you lose all your cash.

v1.3.1 — March 10, 2013
- Added SaveAfterTransaction and SaveAfterInterest INI options.

v1.3 — November 15, 2012
- Improved animation alignment by sliding the player into place.
- Partially fixed bug where ATMs wouldn't work if they weren't individually coded for.
. . . . Now they should all work when they're nearby (i.e. when they're loaded into the game world).
. . . . To mark them on the map from far away, I still have to code for them individually.
- Partial workaround for bug where the ATM screen showed your cash instead of your balance.
. . . . Can't display more than $999,999,999 (because that's the max cash amount).
. . . . Makes the cash displayed in the top-right count up/down obnoxiously.
- Changed default ResetKey INI setting to X (previously Delete).
- Added INI setting LoseCashOnChaseDeath (applies only to deaths during chases, instead of all deaths).
- Cash isn't deposited or withdrawn until transactions are actually complete.
- Fixed jerky cop car movement during transactions.
- Refactored code to improve its structure somewhat, and compiled to DLL file.
- Simplified BankAccount.dat file.

v1.2.7 — July 25, 2012
- Changed default money-moving controls to WASD + Shift/Control (previously Arrows + PageUp/PageDown)
- Move amount is now adjusted by $1,000 increments
. . . . by $10,000 while holding Shift
. . . . by $100 while holding Control
. . . . Added INI settings for these numbers
- Fixed bugs where...
. . . . script keys wouldn't work while holding Shift, Control, or Alt
. . . . keys pressed during ATM animations caused delayed responses instead of being ignored
- Very minor cleanup

v1.2.6 — March 25, 2012
- Added 1 ATM location in Alderney
- MoveMoreKey and MoveLessKey can be held down to quickly change how much money to move
- Starting a transaction unequips your weapon
- Minor cleanup

v1.2.5 — February 11, 2012
- Added 1 ATM location in Broker
- Rearranged transaction text
- Interest is postponed while the player isn't in control (to avoid interrupting cutscenes)
- Minor cleanup

v1.2.4 — January 20, 2012
- Added dulcimer sound when you earn interest
- Added PlaySound_Interest, ShowMsg_MarkedATM, and MsgDurationSeconds settings in the INI
- Minor tweak and optimization
- Cleaned up keypress handling, other minor cleanup

v1.2.3 — November 13, 2011
- The nearest ATM is now marked on the map for you when you're too far away
- Added readme and INI file for settings
- Added options to lose cash when you die or get arrested
- Minor fix and optimization

v1.2.2 — October 5, 2011
- Now you can hold modifier keys while adjusting the move amount to adjust faster
. . . . Hold PageDown to adjust by $5,000
. . . . Hold PageUp to adjust by $50,000
- Added messages for when you're not close enough to an ATM
- Increased the maximum balance from $2.1 billion to $4.2 billion
- Fixed bugs where money would disappear past the cash/balance limits
- Minor fixes, tweaks and optimization

v1.2.1 — July 26, 2011
- Added 1 ATM location at Star Junction
- Numbers are now shown with commas
- Changed save file to BankAccount.dat
- Changed version numbering scheme

v1.2 — July 4, 2011
- Account balance no longer saves after cancelling out of save menu
- Completing a transaction now displays how much was transferred (replaces the "thank you" message)
- Added 1 ATM location at Francis International Airport

v1.1c — May 31, 2011
- Fixed bug where starting transaction does nothing except freeze the player (the dreaded infinite loop!)

v1.1b — May 30, 2011
- Fixed animation bug where player wouldn't face the ATM properly

v1.1 — May 27, 2011
- Move amount can no longer be negative
- Account balance now saves only when getting into a bed
- Added 4 ATMs at 2 locations in Alderney
- Tweaked animations
- Clarified the contents of BankAccount.txt

  • HippieCommunist likes this

ska
  • ska

    Amanaemonesia

  • Andolini Mafia Family
  • Joined: 05 Mar 2011
  • United-States

#2

Posted 27 May 2011 - 02:01 AM

This is pretty cool! I'll have to try it out sometime. icon14.gif

icelaglace
  • icelaglace

    See futures in balls

  • Members
  • Joined: 04 May 2011

#3

Posted 27 May 2011 - 02:03 AM

PERFECT!
I was thinking about this possibility few days ago!
Very good work mister! ;D

Gokaic
  • Gokaic

    Rat

  • Members
  • Joined: 17 Jan 2006

#4

Posted 27 May 2011 - 06:00 AM

The mod looks great. I haven't gotten to try it out yet, but I wanted to post about the bug you're having with saving. Unfortunately, the only way to fix that bug would be to only save the text file when the player saves the game. I don't know if it would be possible to only save the file when you save the game though, but if you are able to, then you don't need to worry about the amounts being lost since as long as the game/script is still running, it'll have the amounts saved. Hope this helps, and keep up the great work!

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#5

Posted 27 May 2011 - 06:47 AM

@Gokaic

The only problem is detecting when the player is saving... I haven't found a way yet.

Maybe detecting when Niko gets into bed, but then the script would save even if you cancel out of the save menu. That's probably what I'll do in the next version, until I find a better way..
  • HippieCommunist likes this

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#6

Posted 27 May 2011 - 11:36 PM

New version in first post!

Changes in v1.1:
- Bug fixed: move amount can no longer be negative
- Account balance now saves only when getting into a bed
- Tweaked animations
- Clarified the contents of BankAccount.txt

Updating from v1.0: open BankAccount.txt and copy your bank balance (the top number) into the new v1.1 BankAccount.txt.
  • HippieCommunist likes this

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#7

Posted 28 May 2011 - 10:24 AM

I was about to mention how f*cking awesome you are....then realised you already know that icon14.gif
  • HippieCommunist likes this

rootmanback
  • rootmanback

    Rat

  • Members
  • Joined: 05 Aug 2005

#8

Posted 28 May 2011 - 01:55 PM

cool, now we can save money:) would be cool to have more ways to spend ingame cash other than purchasing guns, ammo, drinks, taxi, clothes, etc.

if you could can you make new safehouses purchasable in iv? just loved being able to have more than one safehouse.....that could make me wanna spend more ingame.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#9

Posted 28 May 2011 - 06:48 PM

Thanks everyone, I wasn't sure if anybody except me would be interested in this. smile.gif

@rootmanback
Do you mean locking all safehouses after the first one until you buy them? The safehouses are unlocked according to the story, so I think that would be a bit weird. If you meant adding new safehouses, I like that idea, but it would be much harder...

For other stuff to spend money on, try C06alt's Vehicle Selector mod, which lets you buy up to 50 customized vehicles that won't disappear no matter where you park them. Also try HippieCommunist's Contact Missions mod. When you find a Contact (marked with $ on the map when you're nearby), you can buy things from him, like a helicopter with bodyguards. And with HippieCommunist's Prison Break mod, you can go to prison and have to either escape or pay bail.
  • HippieCommunist likes this

MrPaul123
  • MrPaul123

    Trick

  • Members
  • Joined: 11 Feb 2011

#10

Posted 28 May 2011 - 06:54 PM

Nice work AngryAmoeba! I love these realism scripts! biggrin.gif


Yes it would be nice for more things to spend money on. Like a business mod, and more activites like in san andreas. smile.gif


Keep up this work. The more realism mods the better! I wonder, is there a fuel mod for gta 4? where you can pay for refueling?

manu90mala
  • manu90mala

    Flash Fm

  • Members
  • Joined: 19 Jan 2009

#11

Posted 30 May 2011 - 05:10 PM

nice nice mod...i love seeing all of that realism stuff coming along in these times..all we need now is a business mod (from diners to criminal rackets)

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#12

Posted 30 May 2011 - 07:46 PM Edited by AngryAmoeba, 30 May 2011 - 07:52 PM.

Minor update in first post!

v1.1b
- Fixed animation bug where player wouldn't face the ATM properly


QUOTE (MrPaul123 @ May 28 2011, 12:54)
I wonder, is there a fuel mod for gta 4? where you can pay for refueling?

How about this? http://www.gtaforums...howtopic=399649

QUOTE (MrPaul123 @ May 28 2011, 12:54)
Yes it would be nice for more things to spend money on. Like a business mod, and more activites like in san andreas. smile.gif
QUOTE (manu90mala @ May 30 2011, 11:10)
all we need now is a business mod (from diners to criminal rackets)

I would try to make a business mod, but I know there are other modders already working on projects like that. So I'll just wait with you guys for those mods to be finished.
  • HippieCommunist likes this

Prof_Farnsworth
  • Prof_Farnsworth

    Ambient Modder

  • Members
  • Joined: 25 Feb 2011

#13

Posted 30 May 2011 - 08:16 PM

QUOTE (AngryAmoeba @ May 30 2011, 19:46)

I would try to make a business mod, but I know there are other modders already working on projects like that. So I'll just wait with you guys for those mods to be finished.

Almost done, only have about 20 businesses right now, I want to add more.

On topic, this script is great Angry, very clean and works without a hitch. Nice work!
  • HippieCommunist likes this

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#14

Posted 31 May 2011 - 10:34 PM

Minor but important update in first post!

v1.1c
- Fixed bug where starting transaction does nothing except freeze the player (the dreaded infinite loop!)


QUOTE (Prof_Farnsworth @ May 30 2011, 14:16)
very clean and works without a hitch.

So much for that, eh? wink.gif
  • HippieCommunist likes this

Prof_Farnsworth
  • Prof_Farnsworth

    Ambient Modder

  • Members
  • Joined: 25 Feb 2011

#15

Posted 01 June 2011 - 05:31 AM

QUOTE (AngryAmoeba @ May 31 2011, 22:34)
Minor but important update in first post!

v1.1c
- Fixed bug where starting transaction does nothing except freeze the player (the dreaded infinite loop!)


QUOTE (Prof_Farnsworth @ May 30 2011, 14:16)
very clean and works without a hitch.

So much for that, eh? wink.gif

LOL colgate.gif I hadn't run into that problem yet...
  • HippieCommunist likes this

zyonig
  • zyonig

    Mack Pimp

  • Members
  • Joined: 29 Oct 2007
  • Scotland

#16

Posted 01 June 2011 - 04:11 PM

Nice mod. Now I can earn interest on all my ill-gotten gains. *Mr Burns voice* Excellent....

Just don't tell the IRS.

crisce
  • crisce

    Player Hater

  • Members
  • Joined: 18 May 2010

#17

Posted 18 June 2011 - 11:13 PM

Really nice mod biggrin.gif
In the parking lot of the 'airport, under the train station, an ATM is not recognized.
Sorry for my bad english confused.gif

rootmanback
  • rootmanback

    Rat

  • Members
  • Joined: 05 Aug 2005

#18

Posted 19 June 2011 - 05:00 AM

QUOTE (AngryAmoeba @ Saturday, May 28 2011, 18:48)

@rootmanback
Do you mean locking all safehouses after the first one until you buy them? The safehouses are unlocked according to the story, so I think that would be a bit weird. If you meant adding new safehouses, I like that idea, but it would be much harder...

yes adding new safehouses thats the idea smile.gif i just loved owning more than a few in vc and in sa. oh and in chinatown wars.

i dont see how hard that can be, i mean recently there havebeen many buildings ingame that were made accessible so that you can go in any building at any time. what you could do is make the buildings you choose as a safehouse LOCKED and then add that thing that makes them unlocked like prof farmsworth's mod- the bit that lets you purchase a building and then have that as a safehouse smile.gif

great progress on your other mods. keeping it real smile.gif

IDEA::::: the mission where you go online and enquire about that felcher and then have that chick ancelotti contact you regarding your interest in her car for the likelyhood of her selling the car to you...... heres a realism mod for you. being able to enquire about a car online and then having him/her contact you to meet up for the ability to buy a car off them biggrin.gif

if that can be made as a mission, it can be made likely for a car to be bought either online OR to have someone contact you in a determined amount of time to have them sell the vehicle to you. angry plsssssss make it. i give you cookie.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#19

Posted 25 June 2011 - 10:01 PM Edited by AngryAmoeba, 30 June 2011 - 05:02 AM.

I added the ATM under the train station at Francis International Airport. Sorry it took so long!
  • HippieCommunist likes this

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#20

Posted 30 June 2011 - 05:02 AM

Little update in first post.

Changes in v1.2:
- Account balance no longer saves after cancelling out of save menu
- Completing a transaction now displays how much was transferred
- Added 1 ATM location at Francis International Airport

qiangqiang101
  • qiangqiang101

    Kal-El

  • Members
  • Joined: 02 Feb 2010

#21

Posted 03 July 2011 - 10:09 PM

Dead Link, Please renew it.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#22

Posted 04 July 2011 - 05:01 PM

Fixed. Sorry!

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#23

Posted 26 July 2011 - 07:42 AM Edited by AngryAmoeba, 26 July 2011 - 03:55 PM.

Small update in first post...

By the way, if you want something to spend money on, you might be interested in my latest mod. It makes you pay bribes to keep notoriety down, among other things. See "Criminal Record" in my sig.

Changes in v1.2.1
- Added 1 ATM location at Star Junction
- Numbers are now shown with commas
- Changed save file to BankAccount.dat
- Changed version numbering scheme

Mlnecrafter
  • Mlnecrafter

    Player Hater

  • Members
  • Joined: 03 Apr 2012

#24

Posted 03 April 2012 - 10:42 PM

Registered, just to say thanks for a great mod!

"Didn't even test yet" , going to do so now, pretty excited biggrin.gif!

supported by ad link).

thanks again.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#25

Posted 26 July 2012 - 01:06 AM

So apparently I put out an "update" on July 18 that contained the wrong version. The file was called BankAccount_v1.2.7.zip, but it contained v1.2.6 of the mod. This is now corrected. Very sorry! blush.gif

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#26

Posted 04 August 2012 - 11:43 AM

Does this work on RPG servers ? ON SAMP?

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#27

Posted 04 August 2012 - 05:41 PM

I've never tried it on multiplayer, but I doubt it would work. (And if SAMP is only for San Andreas, then no, it definitely won't work with that. This is a GTA4 mod.)

onetidd
  • onetidd

    972 Represent'

  • Members
  • Joined: 01 Nov 2006

#28

Posted 06 August 2012 - 08:14 PM

Hello i'm wondering what for ppl who use controllers?! Can it have the shortcut for us?! Blessup

NudasPriest
  • NudasPriest

    Midnight Toker

  • Members
  • Joined: 29 Jul 2012

#29

Posted 14 September 2012 - 05:46 PM

I noticed there are some ATMs that aren't registered somewhere on Alderney. There are probably quite a lot but all I remember is that I saw some nearby ATMs wherever the hell I was on Alderney and they didn't work, pressing M showed some ATM on the map pretty far away, too.

@onetidd
Try Xpadder at least version 5.7, that's what I use for my controller + GTA IV with mods.

About the mod:

I can say there are only two things that would make this mod perfect for me and one of them is obviously getting all the ATMs in the game registered in the mod;

#2 is a suggestion:
Right now the ATMs (vanilla ATMs) show you your "balance" which is really just the cash you have on hand. This suggestion is basically just polishing the mod to feel more in line with the game: When you press action (left bumper or E by default) near an ATM, to see your balance, you could have the mod switch our money temporarily to whatever is stored in the account, and then the ATM's screen in game would read our account balance correctly, and closing the ATM interface would revert to the money on hand. I hope I'm being clear enough with this. It's not too important but it would just be a little something that I feel would only add to the experience and make it feel more like the game and less like a mod.

ch3y3zze
  • ch3y3zze

    ni**erKILLER

  • BUSTED!
  • Joined: 30 Aug 2012

#30

Posted 14 September 2012 - 07:05 PM

2. is a good idea and check the script i believe he uses an array of vector3 for atms, i think u could simply add postions to the array and his logic should work with the bigger array, i havent reviewed but im sure he wrote it in such a way

for the cash he could save your cash on hand before using atm and change to your account balance so display is correct, then give your money back when ur done, or he can use perframe draw to draw over the atm screen and write whatever he likes




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users