:
Destination Time
:
Present Time
:
Last Time Departed
Sign in to follow this  
wdaughtrey2011

03B6 building swap problems

Recommended Posts

I have a question my name is billy,I have an addon version of 0.2e its called bttf hv 0.2e version 5.0 it has a fully rendered hill valley and good time travel.my question is i am trying to swap more buildings for time travel i was able to edit in sannybuilder i was able to swap the texaco gas station to a modern gas station  thats already in the game including the gas terminal overhang part as well.however im trying to add more codes to swap more buildings and it is crashing my game i used the standard 03B6 building swap code i replaced the normal building i put in the map using map editor i use the #null in the swap command to make one building disappear for example coordiantes from #1955gas to #null  im tryig to do that for other buildings but its not letting me what am i doing wrong please help.

Share this post


Link to post
Share on other sites

I was able to do it for the gas station and for the overhang but i cant do it for other buildings i dont understand whats causing it to crash if i was able to swap the gas station in hillvalley i put the code in under the courthouse swap opcodes for example-----:HLLVLLY_1631
wait 0 
if 1 
   not $2058 >= 1985 // integer values 
  $2058 >= 1905 // integer values 
else_jump @HLLVLLY_3059 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015CLOCKTOWER to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985CLOCK_DAY to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #EOT5 to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #LHBUILD034 to #1955CLOCK_DAY 
03B6: replace_model_at -1518.78 848.04  16.2053 radius 80.0 from #washbuild062 to #NULL
03B6: replace_model_at -1527.08 852.54  19.8053 radius 80.0 from #washbuild063 to #NULL
03B6: replace_model_at -1552.78 908.1   14.3  radius 80.0 from #NULL to #1955gas 

the last 3 codes is what i added basically it makes the modern gas station i put in the same coordianates as texaco disappear appear in 1955 and it makes the texaco station from 1955 appear im trying to do the same for other buildings but when i put the same kind of code in it crashes my game please help.what do i need to do to make more buildings disappear like i did when i put in the 3 codes above.

Share this post


Link to post
Share on other sites
:blink:

How can you code anything without knowing the meaning of "parameter"

I have a question ,Im having a problem adding more swap buildings codes for example i used this one here :HLLVLLY_1631
wait 0 
if 1 
   not $2058 >= 1985 // integer values 
  $2058 >= 1905 // integer values 
else_jump @HLLVLLY_3059 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015CLOCKTOWER to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985CLOCK_DAY to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #EOT5 to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #LHBUILD034 to #1955CLOCK_DAY 
03B6: replace_model_at -1518.78 848.04  16.2053 radius 80.0 from #washbuild062 to #NULL
03B6: replace_model_at -1527.08 852.54  19.8053 radius 80.0 from #washbuild063 to #NULL
03B6: replace_model_at -1552.78 908.1   14.3  radius 80.0 from #NULL to #1955gas

the last 3 codes i added below the courthouse codes enabled me to make the 1955 texaco appear in 1955 and a modern gas station to appear in its place in 1985 my problem is im trying to add more buildings to swap under the codes i added and it wont let me every time i added more building swap codes it crashes my game it worked for me with the gas stations why isnt it working for me for other buildings,the washbuild062 is a modern gas station i overlapped the texaco station with in mapeditor,the washbuild063 is the gas overhang when i travel to 1955 the code iput in makes the modern station and the overhang disappear and the 1955 texaco with its overhang appears.i would like to be able to do it with more buildings but for some reason its not letting me it crashes my game any advice would be greatly appreciated.

Share this post


Link to post
Share on other sites

I have a question ,Im having a problem adding more swap buildings codes for example i used this one here :HLLVLLY_1631
wait 0 
if 1 
   not $2058 >= 1985 // integer values 
  $2058 >= 1905 // integer values 
else_jump @HLLVLLY_3059 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015CLOCKTOWER to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985CLOCK_DAY to #1955CLOCK_DAY 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #1985DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #2015DOWNTOWN to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #EOT5 to #1955DOWNTOWN 
03B6: replace_model_at -1552.78 908.355 14.4 radius 80.0 from #LHBUILD034 to #1955CLOCK_DAY 
03B6: replace_model_at -1518.78 848.04  16.2053 radius 80.0 from #washbuild062 to #NULL
03B6: replace_model_at -1527.08 852.54  19.8053 radius 80.0 from #washbuild063 to #NULL
03B6: replace_model_at -1552.78 908.1   14.3  radius 80.0 from #NULL to #1955gas

the last 3 codes i added below the courthouse codes enabled me to make the 1955 texaco appear in 1955 and a modern gas station to appear in its place in 1985 my problem is im trying to add more buildings to swap under the codes i added and it wont let me every time i added more building swap codes it crashes my game it worked for me with the gas stations why isnt it working for me for other buildings,the washbuild062 is a modern gas station i overlapped the texaco station with in mapeditor,the washbuild063 is the gas overhang when i travel to 1955 the code iput in makes the modern station and the overhang disappear and the 1955 texaco with its overhang appears.i would like to be able to do it with more buildings but for some reason its not letting me it crashes my game any advice would be greatly appreciated.

Share this post


Link to post
Share on other sites

Split posts from different threads into this topic. You won't get a quicker answer by posting the same question in different threads. Instead people could get annoyed and ignore you altogether.

 

First, don't decompile our main.scm. It contains code that patches the game's memory in order to add 2 new opcodes for reading and writing memory addresses. This happens through carefully laid out global variable assignments (if you're interested, it can be found on GTAForums). The decompiler however gets confused by those, especially the unknown opcodes, and writes funny code that might not compile again right IIRC. Instead, use the source we supplied (main.txt).

Second, you're missing definitions for the aforementioned opcodes. Without them the game won't be able to interpret the code generated by the compiler, as the compiler couldn't do its job correctly. Thus the game crashes on startup. For those, please wait until we publish the fix-release. It'll have them included. If you don't wish to wait and for now only want to test the model replacement, you can remove the code sections for the memory hacking (they're called :Keys). However then our custom keybinds (Hover Conversion, Timetrain door opening, ...) won't work anymore.

Third, before doing the replacement you might have to make sure the models are actually loaded, I'm not sure right now though since I don't have all of the code in my head. It's very likely the game will crash if you try to "spawn" a model when it's not loaded.

Edited by Mini-Me

Share this post


Link to post
Share on other sites

thank you I dont mean this in a bad way but can you please reexplain this to me in a very simplified way im a beginner at this also the code i typed above did work i was able to make the texaco gas station disappear and be replaced with a modern one i want to do the same to othe buildings please reexplain to me what to do in simple terms thank you

Share this post


Link to post
Share on other sites

Also can you give me an example of what the keys are you are reffering to which would remove the keybinds like hover conversio etc, also can you explain to me how i can know if a model is loaded before i start my game,I did use sanybuilder with the main.scm ad it compliled correctly with my gas station opcode but not for any new ones i put in why would it work for my gas station code and not for other buildings which exist in the game to be swapped.im confused

Share this post


Link to post
Share on other sites

A simple version of what mini me said is

 

we use special opcodes that your sanmy builder cant read, the next version of hv on the 12th your sanny builder will be able to read, please wait until the 12th, download the mod and open the main.txt we will provide not the scm

Share this post


Link to post
Share on other sites

also i would like to add that i changed the textures of the courthouse for 1985 to make it look older like it did i the movie and it looks a hell of alot better than any version i have seen released just a thought for you guys 

Share this post


Link to post
Share on other sites

It will be in the downloads section of the forums the download contains mostly bug fixes and more buildings

Pictures of your work are appreciated  

 

Share this post


Link to post
Share on other sites

sure thing i will upload them asap also the game is bttf hv 0.2e v5.o it was made by bttfmods whoever made this did a very good job .all i did was find a way to change the texaco gas station and i changed the txds of the 1985,and 2015 courthouses.

Share this post


Link to post
Share on other sites

i figured it sorry about that lol,here is some screenshots of my changes using rodri bttf mod 0.2e version 5.0 as you can see in 1985 i changed the gas station by using the 1955gas1 to #null command and i changed the txds of the 1985 courthouse to make it look more older and dirty like it appeared in the first  dmovie

also i changed the 2015 courthouse to look like it has a new makeover.tell me what you think,im trying to get more buildings swapped i was able to swap the gas station but i would like to swap the 1955diner for the lh_pizzaplace building i would like to put the pizzahut building where the diner is for 1985 or 2015 any help would be appreciated i was able to do it for the gas station i should be able to do it for the other buildings too.

1447219482_tmp_gta-vc_2015-11-11_00-02-26-88.jpg

1447219578_tmp_gta-vc_2015-11-11_00-02-43-26.jpg

1447219644_tmp_gta-vc_2015-11-11_00-03-12-58.jpg

1447219679_tmp_gta-vc_2015-11-11_00-04-55-14.jpg

1447219710_tmp_gta-vc_2015-11-11_00-05-05-09.jpg

1447219769_tmp_gta-vc_2015-11-11_00-07-18-58.jpg

1447219741_tmp_gta-vc_2015-11-11_00-05-12-82.jpg

Share this post


Link to post
Share on other sites

what im trying to do like i did for the gas is put the lh_pizzaplace building in the delorean map where the diner is on mapeditor it looks like 2 buildings i the same place just like i did the gas station  i tried to put in the line for 1985 03B6: replace_model_at  where the building is i put in the map over the diner radius 80.0 from #1955diner1 to #NULL like I did for the gas station but it doesnt work the game will not load and i know it should work because i was able to do the same thing for the gas station if i was able to do it for the gas station why cant i do it for the 1955diner1 with the lh_pizzaplace building i have put over it.it should work.

Share this post


Link to post
Share on other sites

i imagine there must be a way to set a buildings coordinates via the scm instead of trying to load into null, i dont think more than one thing can be loaded into null

Share this post


Link to post
Share on other sites

actually i loaded 3 null commands and that part worked the 1985 station to null and the modern overhang to null in 1955 era and the 55 gas station to null in 1985 era so thats 3 null commands i added into scm.

Share this post


Link to post
Share on other sites

What i meant to say is null is such a vague placeholder that it technically shouldnt work but seeing as it does theres probably a tiny flaw in your code that is corrupting the script that you are overlooking

Share this post


Link to post
Share on other sites

actually i figured it out finally the scm will only load 220 models i had to delete some models in order to get the ones i needed to swap during time travel i finally got it the null is irrelevent it has to do with making sure you dont go over the limit on model defining all i had to do was put the model i wanted to define in and then write the opcode for building swap works good now.

Share this post


Link to post
Share on other sites

Since you want an opinion, to me your game looks like it's been messed up pretty much :D . Everything so colorful and different styles that don't fit together.

You're reaching an engine limit here. Unless you find or make a limit adjuster that raises this limit there's little you can do. Try some of these:
http://gtaforums.com/topic/733982-fastman92-limit-adjuster/
http://gtaforums.com/topic/736512-open-limit-adjuster/
http://www.gtamodding.com/wiki/VC_Limit_Adjuster

Share this post


Link to post
Share on other sites

thanks man for the  help i really appreciate it i installed vc limit adjuster 2.0 im going to see if this works actually to me this version of the game is awsome hill valley is more detailed and theres more in this version,i think the guy rodri did a great job.

Share this post


Link to post
Share on other sites
Sign in to follow this