These are chat archives for hennysmafter/GTAV-SH-Mod

15th
Oct 2015
kopalov
@kopalov
Oct 15 2015 04:30
Basicly what I did with interiors is adding a new argument to h description. There are 9 interiors, including psychologist office, large apart from gta online, hotel room and so on. Their coords are in local "interior". I did not find an enterance to the middle-quality apartment from gta online, so adding that interior is a to-do for now.
Teleporting on C press is just for testing: i was experimenting with save position.
kopalov
@kopalov
Oct 15 2015 04:39
I remember that for testing I used the houses close to the vespucci beach.
sh.interior() is activated when you stand at the door and are an owner. It has 3 vars for h, ht and c (adding a GUI menu for creating a custom safehouse is also a to-do, that menu should include a "choose your interior type" option). Basicly for now it just teleports you in, and you cannot exit, I have to figure out why lookforexit() is not working.
kopalov
@kopalov
Oct 15 2015 04:45
Considering the GUI, we need to decide what options we want there. Maybe we shall choose a few spots on the map, like retail agencies. You come to them, and GUI menu pops up, giving you different options with prices. You can teleport to the house locations (camera view should be fixed outside, so that you can evaluate the property) and buy or rent them if you like.
Szabo used a custom GUI menu in his car shop mod. We already have a library for ours (libs/shGUI.lua), it is quite functional if we come up with a list of things that should be in that menu and write functions for each item in that list.
Henny Smafter
@hennysmafter
Oct 15 2015 12:23

The GUI should be real easy to understand, I liked the nativeUI but is is not in .lua as far as I know which is a problem. Can't remember the car shop mod I am using another one so will download that in the evening and test.

When I change in version 0.7.7 the houses to my last version with the driveways is that going to be a problem for you with those extra arguments in the h description.

Henny Smafter
@hennysmafter
Oct 15 2015 12:29
I really like the Retail Agencies idea. We need to implement that because it brings realism I can create websites for these realtors (ingame www) So when the user walks into the marker either the GUI menu is opened or it goes directly to the internet page of the realtor.
I want to try to keep as much as possible inside GTA, not sure if you know what I mean. But the best GUI in my opinion are easy and simple like the menu you get when walking into the invisible marker from a savehouse, you get the 3 options save,sell,cancel real easy. The native trainer or enhanced trainer are really great and lots of fun but the endless going back and forth between all the menu's ain't fun.
Tonight I am going to spend on the GUI will look at the Szabo Car Mod. Will do that in a seperate mod just to see that when you press a button you get a message, when finished I can send it over for you to see or post pics and then implement it in the safehousemod.
Henny Smafter
@hennysmafter
Oct 15 2015 13:52
Map1.jpg
Map3.jpg
Map2.jpg
House2.jpg
House5.jpg
House7.jpg
House4.jpg
House1.jpg
House3.jpg
House6.jpg
Think I add the first 7 houses from the HS_Version adds a bit of color to the chat. ;-)
kopalov
@kopalov
Oct 15 2015 16:12
I use LUA built-in functionality for GUI buttons.
So when you step in marker function is called like this:
sh.shGUI.hidden = false
sh.shGUI.buttonCount = 0
sh.shGUI.addButton("Save Game",sh.savegame,1,0,0.2,0.06,0.06)
sh.shGUI.addButton("Sell this house",sh.sellhouse,nil,0,0.2,0.06,0.06)
sh.shGUI.addButton("Cancel",sh.cancel,nil,0,0.2,0.06,0.06)
which adds buttons. In libs/shGUI.lua we can edit how those buttons look, but their contents and functions they call should be specified in our main .lua file
Henny Smafter
@hennysmafter
Oct 15 2015 16:13
Okey, I will be modding in about two hours! Need to take care of a few other items first.
kopalov
@kopalov
Oct 15 2015 16:13
Szabo just experimented with color and transparency in his car shop mod, so his buttons, built on lua engine, look pretty.
Henny Smafter
@hennysmafter
Oct 15 2015 16:14
Do you have that mod? I looked for it (2mins) and did not get it. So was planning in doing that this evening but maybe you already got it.
kopalov
@kopalov
Oct 15 2015 16:15
All on-screen messages are handled by sh.showhint, like sh.showhint(150,"Welcome Home"), where 150 is a duration in msec it stays on the screen.
Will check if I have it now
Henny Smafter
@hennysmafter
Oct 15 2015 16:15
Thank you. You can just drop it in the chat it will automatically be uploaded.
Ow link is also good.
Better even.
kopalov
@kopalov
Oct 15 2015 16:17
So we must decide if we want houses divided by categories (simple, luxury etc), price, location or just put them all in one big list.
Interior type in 0.8 is the last integer in array, like here it is 4th interior: {1, 0,0,0, 0,0,0,-1063.7385253906,-1159.8004150391,2.3458766937256,24.428289413452,280000,0,4}
Henny Smafter
@hennysmafter
Oct 15 2015 16:18
So only the ,4 is added to original string
kopalov
@kopalov
Oct 15 2015 16:19
yes
Henny Smafter
@hennysmafter
Oct 15 2015 16:19
In my opinion(which is always open for changes) we could do different realtors where each realtor is specialized in a certain aspect of the market. So you got cheap realtor with simple houses, cabins, trailers for sell/rent and a high end realtor.
kopalov
@kopalov
Oct 15 2015 16:19
so it's easy to use with your houses
That's a good idea!
Henny Smafter
@hennysmafter
Oct 15 2015 16:19
Yeah indeed. I really would love to have it working with the ingame websites what is your thought about that?
kopalov
@kopalov
Oct 15 2015 16:19
Do you have any spots in mind where we can place rieltor offices?
IWebsite would be great, but it's not doable with scripts. You can check the forums and see if someone has actually managed to make working sites first. Because I'm not sure it's possible.
Henny Smafter
@hennysmafter
Oct 15 2015 16:21
Yes I have been driving around and seen realtor signs. Not sure where exactly but have a good idea! Close by Franklins original house there is a car repair station (red/yellow) with something in the name 'glass'
I have done websites in GTA 4. Somewhere in GTA 5 there is a folder which has all of them init. They are basically real websites how they are build up.
kopalov
@kopalov
Oct 15 2015 16:22
There is a function for phone messaging, but last time I checked it it returned null.
If there is such a folder, we should give it a try, surely.
Henny Smafter
@hennysmafter
Oct 15 2015 16:22
I just need to find it extract it change the already present realtor to our cheap/expensive realtor names and do the webdesign.
I am currently in the production of a video with AE for a customer I need to finish this tonight. Are you available later. Because if I finish now I can mod earlier?
kopalov
@kopalov
Oct 15 2015 16:24
So OK, I'll fix interiors, and you look into the realtor/website things.
Henny Smafter
@hennysmafter
Oct 15 2015 16:24
Yes and GUI
What would you like me to do first?
kopalov
@kopalov
Oct 15 2015 16:24
Yes, sure. I've just got home from work, so for half an hour I'll be having dinner)
Henny Smafter
@hennysmafter
Oct 15 2015 16:24
What kind of release date are we looking at or no pressure?
kopalov
@kopalov
Oct 15 2015 16:25
It does not matter. For now mod is not working because of mistakes made by me in coding, so take your time and choose your priorities for yourself.
We'll try to release 0.8 when I iron out bugs with interiors.
I'll just see how quick that goes.
Henny Smafter
@hennysmafter
Oct 15 2015 16:26
Okey, can we add my houses with the 0.8 version?
I can reinstall .75 to see your numbering and combine the two then we are close to 95 houses who will be in order on the map from 1 to 95
kopalov
@kopalov
Oct 15 2015 16:28
In 0.9 I was planning on new GUI and camerawork.
Yes, we will add your houses in 0.8. You just need to choose one interior type for each. Interior types are on lines 240-248 in 0.8rc version.
Henny Smafter
@hennysmafter
Oct 15 2015 16:28
Okey so what is planned to be in 0.8
kopalov
@kopalov
Oct 15 2015 16:28
I'll also try to add 9th interior -- mid class one. I contacted Open Interiors mod maker for it's location.
Henny Smafter
@hennysmafter
Oct 15 2015 16:29
Milestone 0.8
  • New houses adding to +/- 95
  • Interiors
  • Blinking text fix
kopalov
@kopalov
Oct 15 2015 16:29
0.8 -- interiors, new houses, blinking text fix.
Yep, that sounds about right)
I'll get going in half an hour, but don't rush your work: for now everything relies on me fixing interior mechanics.
Henny Smafter
@hennysmafter
Oct 15 2015 16:30
Would you like me to create a website with project management system (no trouble it is my job) we can also share the mod and video detailed installation instructions.
Would be cool!
Speak to you later enjoy your meal!
kopalov
@kopalov
Oct 15 2015 16:31
I think it is a good idea, but probably close to 0.9 or even 1.0 release. For now it's too "beta", if you know what I mean)
See you later
Also, I uploaded 0.7.6 yestarday on gtaforums, if you haven't noticed yet)
I just took out those debug tools.
Henny Smafter
@hennysmafter
Oct 15 2015 17:37
Yes I saw the upload, did you add the clear.blips function inside the add blips
Website would be private for as long as we want. Gives us time to talk about the design. I will draw up an idea. We can go live with the RC.
kopalov
@kopalov
Oct 15 2015 17:49
No, I just removed everything related to V and C press. There is already a system to clear blips in place.
Also, I guess you know this project, but here is a full list of all GTA 5 natives: http://dev-c.com/nativedb/
If you can make a site, that would be fine. However, when our work is separated like now, when we both have our fields of interes, I think we can go on without one.
kopalov
@kopalov
Oct 15 2015 18:05
Also, it is better to test GUI in 7.5 or 7.6, since many dialogs and markers are broken in 8.0
Right now I'm adding in new "entry" function, so that you do not just teleport in.
Henny Smafter
@hennysmafter
Oct 15 2015 18:07
But without the buttons the blips from the game will be missing. Or did you do something else to prevent that. I always need to clear the blips after startup to see the missions and then I can add them again.
I will test the GUI in those version.
kopalov
@kopalov
Oct 15 2015 18:14
really? I've never had any problems with other blips. Even right now in 0.8 I can see Lester mission, properties for sale and places to hang out.
I guess then we should add those two tick functions back with those changes you've suggested.
Henny Smafter
@hennysmafter
Oct 15 2015 18:16
I am not lying I have off-course a lot of other mods that also have blips. I decided to make those buttons in your mod and while doing that I saw your code which made me very happy. Loaded the game pressed C. And the missions popped right back in. I was like whoeeeejeaaahhhh. Then I pressed V to see the houses again and pressed a few times and suddenly had a thousand houses. :-) So I went and look for a solution to fix that.
I will add them back into .77 and maybe make them changeable by the user in the heading of the file.
Henny Smafter
@hennysmafter
Oct 15 2015 19:03
What will be the name of the mod when finished Safehouses or Real Estate or ???
For now I am going to store it under Safehouses.
Henny Smafter
@hennysmafter
Oct 15 2015 19:46

Changelog

Version 0.7.7

  • Added User Defined Keys for turning on/off the blips.

Version 0.7.6

  • Improved map blips
Henny Smafter
@hennysmafter
Oct 15 2015 20:32
I am now merging the 2 sets of houses. Apparently your No. 5 and 18 are duplicates so it will be 94 houses. Guess it was a late night... ;-) Happens to me all the time
Henny Smafter
@hennysmafter
Oct 15 2015 21:26
Nope 94 is also wrong I have one house selected which you had as well so the total will be at 93
Henny Smafter
@hennysmafter
Oct 15 2015 23:27

@prexis74

Changelog

Version 0.7.8

  • Added new houses there are now 93 houses with most of them having parking spaces
  • Changed default keys

Version 0.7.7

  • Added User Defined Keys for turning on/off the blips

Version 0.7.6

  • Improved map blips

Milestones (PROPOSED)

Version 0.9.0

  • New GUI
  • New Camerawork

Version 0.8.0 Beta

  • New houses added there are now 95 houses with most of them having parking spaces.
  • Added interiors so now you can go inside the house.
  • Improved blinking text.

Version 0.7.9 CI BUILD

  • Adding interior references to house list.
  • Testing if controller keys can be added together with keyboard.
  • Starting the search for the websites.

Version 0.7.8 CI BUILD

  • Combining Kopalov and HennySmafter houses to a total of 93 houses with most of them having parking spaces.

Version 0.7.7 CI BUILD

  • Added User Defined Keys for turning on/off the blips.

Version 0.7.6 CI BUILD

  • Improved map blips.
Hey wish you a good day in Russia and when you read this when you are back from work then I hope you already had a good day. Did the last finishes to 0.7.8 now saving and I upload to you via PM
Henny Smafter
@hennysmafter
Oct 15 2015 23:32

I made a few changes to the way the file was built up:

Changed credits to both our names. Hope you don't mind. (PS thanks for the credits on the forum post)
Added a key reference.
Changed your house descriptions and basically added them to my descriptions with removing duplicate information.
For the rest I think I did all indents spaces and enters the same as you did so it looks like one organised code.

PS: The above milestones are proposed so things can be added or left out.

So now I am just going to play the game! Let's check out this Szabo Car Shop mod.
Ow and if you missed it the keys in 0.7.8 are now default : Num1 = Customkey Num7=UnloadBlips Num9=LoadBlips Num0 is conflict with lots of trainers. 2468 are also used for navigation incl. 5 so therefore I have chosen 179.
Henny Smafter
@hennysmafter
Oct 15 2015 23:38

If you upload version 0.7.8 to the forum then please ask the users to delete their savehouses and hotels savefile because it won't update anymore, the numbering is completely redone.