SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 12/10/2015, 01:47 PM   #1
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 589
Reputation: 247
Default [Filterscript/Include] MapFix - texture bugs fixes

 ᅠ  ᅠ  

Quote:
Fixes texture bugs on the GTA San Andreas map

Description:

This script fixes most of the texture bugs on the GTA SA map, such as passing through some walls, windows, floors etc.
In other words, it "adds" the collision of the objects, which it didn't had.


List of fixed places:

Status
Coordinates
Location
Define's name
Screenshot
Fixed
1285.2668, 2530.0417, 13.3019
Las Venturas
MAPFIX_PLACE_1
Fixed
2012.9233, -1598.4007, 16.3175
Los Santos
MAPFIX_PLACE_2
Fixed
-1382.7746, 493.7839, 5.3882
San Fierro
MAPFIX_PLACE_3
Fixed
-651.2021, -1688.8994, 41.7038
Flint County
MAPFIX_PLACE_4
Fixed
-1405.6547, -3.0942, 9.0782
San Fierro
MAPFIX_PLACE_5
Fixed
1915.1488, 2226.9431, 13.6563
Las Venturas
MAPFIX_PLACE_6
Fixed
2112.5935, 2372.2631, 12.7533
Las Venturas
MAPFIX_PLACE_7
Fixed
-1646.8326, 597.6365, 33.1171
San Fierro
MAPFIX_PLACE_8
Fixed
-1951.7622, 744.4003, 46.5012
San Fierro
MAPFIX_PLACE_9
Fixed
-2059.1304, 470.3058, 36.1723
San Fierro
MAPFIX_PLACE_10
Fixed
388.9268, -2045.5015, 8.8358
Los Santos
MAPFIX_PLACE_11
Fixed
2186.2938, -2207.8368, 14.5468
Los Santos
MAPFIX_PLACE_12
Fixed
1039.5862, -1377.5670, 19.3621
Los Santos
MAPFIX_PLACE_13
Fixed
501.7941, -1356.5953, 17.1328
Los Santos
MAPFIX_PLACE_14
Fixed
-1536.2725, -448.4432, 7.1037
San Fierro
MAPFIX_PLACE_15
Fixed
-1234.7112, 46.3853, 15.1335
San Fierro
MAPFIX_PLACE_16
Fixed
2788.2073, -1358.6357, 26.5844
Los Santos
MAPFIX_PLACE_17
Fixed
-2243.5947, 77.4637, 36.3203
San Fierro
MAPFIX_PLACE_18
Fixed
-183.0642, 1129.1278, 20.7422
Bone County
MAPFIX_PLACE_19
Fixed
1551.8811, 888.5751, 12.3458
Las Venturas
MAPFIX_PLACE_20
Fixed
-1872.7406, 1436.3032, 8.1797
San Fierro
MAPFIX_PLACE_21
Fixed
1773.3147, 2164.5311, 7.7141
Las Venturas
MAPFIX_PLACE_22
Fixed
831.7307, -1056.5757, 30.9752
Los Santos
MAPFIX_PLACE_23
Fixed
692.5116, -1427.0162, 15.8516
Los Santos
MAPFIX_PLACE_24
Fixed
681.5706, -452.1212, -24.3172 *
Welcome Pump interior
MAPFIX_PLACE_25
Fixed
2343.8516, 382.0144, 27.3888
Red County
MAPFIX_PLACE_26
Fixed
1074.3558, 1399.0736, 6.8203
Las Venturas
MAPFIX_PLACE_27
Fixed
2399.5431, 2159.3948, 11.8203
Las Venturas
MAPFIX_PLACE_28
Fixed
2271.4592, 2349.8641, 20.8028
Las Venturas
MAPFIX_PLACE_29
Fixed
537.3808, 47.7638, 21.3824
Red County
MAPFIX_PLACE_30
Fixed
-2461.8761, -1393.9454, 341.8486
Whetstone
MAPFIX_PLACE_31
Fixed
1077.5627, 1359.9211, 11.8203
Las Venturas
MAPFIX_PLACE_32
Fixed
2350.2412, 1886.7163, 11.7423
Las Venturas
MAPFIX_PLACE_33
Fixed
-2192.7471, 716.0967, 80.6718
San Fierro
MAPFIX_PLACE_34
Fixed
2866.2266, -1406.0481, 11.9911
Los Santos
MAPFIX_PLACE_35
Fixed
2827.9946, -1598.8704, 12.0903
Los Santos
MAPFIX_PLACE_36
Fixed
2869.2391, -1438.4861, 12.9661
Los Santos
MAPFIX_PLACE_37
Fixed
1006.4873, -919.7543, 47.6641
Los Santos
MAPFIX_PLACE_38
Fixed
-2902.6482, 1245.4755, 8.0988
San Fierro
MAPFIX_PLACE_39
Fixed
970.9012, -1039.2278, 31.0508
Los Santos
MAPFIX_PLACE_40
Fixed
2402.2031, 2665.6541, 11.8203
Las Venturas
MAPFIX_PLACE_41
Fixed
1199.4886, -919.9733, 44.1078
Los Santos
MAPFIX_PLACE_42
Fixed
427.3731, -1639.7935, 48.1463
Los Santos
MAPFIX_PLACE_43
Fixed
1301.0448, -968.4888, 39.3527
Los Santos
MAPFIX_PLACE_44
Fixed
2513.9094, 1146.7094, 23.0232
Las Venturas
MAPFIX_PLACE_45
Fixed
-1873.2948, -166.3317, 18.6917
San Fierro
MAPFIX_PLACE_46
Fixed
1621.6163, -1715.4427, 29.2811
Los Santos
MAPFIX_PLACE_47
Fixed
-1943.3566, 705.1246, 69.5194
San Fierro
MAPFIX_PLACE_48
Fixed
-2459.3657, 766.3941, 45.1953
San Fierro
MAPFIX_PLACE_49
Fixed
-1646.5916, 540.0665, 39.6923
San Fierro
MAPFIX_PLACE_50
Fixed
2740.2881, -1263.7468, 60.5795
Los Santos
MAPFIX_PLACE_51
Fixed
-748.8711, -1848.2692, 14.3224
Flint County
MAPFIX_PLACE_52
Fixed
-617.5784, -1902.7026, 8.9671
Flint County
MAPFIX_PLACE_53
Fixed
-409.2902, 2241.8831, 43.4297
Bone County
MAPFIX_PLACE_54
Fixed
-1121.6782, 856.8758, 35.5781
San Fierro / Tierra Robada
MAPFIX_PLACE_55
Fixed
1726.1298, 2120.0964, 13.2891
Las Venturas
MAPFIX_PLACE_56
Fixed
1682.6901, 1389.3976, 15.9007
Las Venturas
MAPFIX_PLACE_57
Fixed
2143.1971, 1617.6655, 1001.9688 *
Caligula's basement interior
MAPFIX_PLACE_58
Fixed
1171.8207, 1227.8077, 11.8125
Las Venturas
MAPFIX_PLACE_59
Fixed
-211.2371, 1055.4974, 24.9042
Bone County
MAPFIX_PLACE_60
Fixed
2319.5928, 1732.5095, 11.8203
Las Venturas
MAPFIX_PLACE_61
Fixed
2393.5303, 1481.5803, 11.8203
Las Venturas
MAPFIX_PLACE_62
Fixed
-2691.3823, 514.2086, 9.7398
San Fierro
MAPFIX_PLACE_63
Fixed
1004.0891, -1160.6143, 24.8594
Los Santos
MAPFIX_PLACE_64
Fixed
808.2341, -1035.5371, 26.0581
Los Santos
MAPFIX_PLACE_65
Fixed
1651.7191, -1331.5612, 108.0276
Los Santos
MAPFIX_PLACE_66
Fixed
2190.9131, -1103.9921, 25.8452
Los Santos
MAPFIX_PLACE_67
Fixed
2618.2036, 1075.6357, 11.7415
Las Venturas
MAPFIX_PLACE_68
Fixed
1837.4878, 1285.5645, 9.5998
Las Venturas
MAPFIX_PLACE_69
Fixed
1902.6581, -1054.9137, 24.0248
Los Santos
MAPFIX_PLACE_70
Fixed
-640.5525, 2717.2556, 72.3751
Bone County
MAPFIX_PLACE_71
Fixed
2419.3054, 2378.4685, 11.8203
Las Venturas
MAPFIX_PLACE_72
Fixed
2527.654, -1679.3883, 1016.4985 *
Sweet's house interior
MAPFIX_PLACE_73
Fixed
289.8807, -1630.0879, 34.3379
Los Santos
MAPFIX_PLACE_74
Fixed
1861.8311, 1361.1387, 56.3731
Las Venturas
MAPFIX_PLACE_75
Fixed
1705.14, 900.7234, 16.3982
Las Venturas
MAPFIX_PLACE_76
Fixed
-878.8828, 1629.7646, 28.3272
Tierra Robada
MAPFIX_PLACE_77
Fixed
-2103.4424, -497.6492, 49.5937
San Fierro
MAPFIX_PLACE_78
Fixed
-2557.1016, 994.7551, 79.2891
San Fierro
MAPFIX_PLACE_79
Fixed
-2276.9089, 916.6872, 67.6484
San Fierro
MAPFIX_PLACE_80
Fixed
2402.0645, -1718.613, 14.622
Los Santos
MAPFIX_PLACE_81
Fixed
2242.7214, 2233.1661, 11.7778
Las Venturas
MAPFIX_PLACE_82
Fixed
-2317.0625, 767.5687, 56.8312
San Fierro
MAPFIX_PLACE_83
Fixed
1085.4861, -1192.4487, 19.1758
Los Santos
MAPFIX_PLACE_84
Fixed
1225.4695, 309.6244, 20.7578
Los Santos
MAPFIX_PLACE_85
Fixed
-2739.4126, 838.3444, 58.2475
San Fierro
MAPFIX_PLACE_86
Fixed
1331.8497, -1001.8965, 47.9052
Los Santos
MAPFIX_PLACE_87
Fixed
-1806.1045, 1511.5961, -31.3402
San Fierro
MAPFIX_PLACE_88
Fixed
-2339.7939, 799.7498, 42.9122
San Fierro
MAPFIX_PLACE_89
Fixed
2088.5537, -2079.4468, 28.3991
Los Santos
MAPFIX_PLACE_90
Fixed
-379.6471, -1439.0034, 26.7266
Flint County
MAPFIX_PLACE_91
Fixed
-2575.5112, 1149.4088, 56.7266
San Fierro
MAPFIX_PLACE_92
Fixed
-1801.0098, 1197.2461, 26.1194
San Fierro
MAPFIX_PLACE_93
Fixed
-1391.2687, 2635.9026, 56.9844
Tierra Robada / Bone County
MAPFIX_PLACE_94
Fixed
2037.3052, 2725.4265, 11.8203
Las Venturas
MAPFIX_PLACE_95
Fixed
-2553.8484, 192.9495, 7.1427
San Fierro
MAPFIX_PLACE_96
Fixed
878.6361, -1571.4884, 14.3906
Los Santos
MAPFIX_PLACE_97
Fixed
771.4907, -3.4023, 1001.7277 **
Los Santos Gym
MAPFIX_PLACE_98
Fixed
147.1183, -198.1062, 7.2813
Red County
MAPFIX_PLACE_99
Fixed
364.2627, -1599.5103, 32.9711
Los Santos
MAPFIX_PLACE_100

Notes:
  • (*) - Interior ID 1
  • (**) - Interior ID 5

Quote:
You can disable the fix of any of the places at the beginning of the filterscript or before include.
For example, write following: #define DISABLE_MAPFIX_PLACE_1 // So it will disable the fix ¹1

How to install:
  • Filterscript version
    1. Download mapfix.pwn on links below into the filterscripts folder
    2. Open downloaded script and compile it
    3. Open server.cfg and write mapfix on line filterscripts
  • Include version
    1. Download mapfix.inc on links below into the pawno/include folder
    2. Open your gamemode and write the following: "#include <mapfix>"
    3. Compile it

Download:

Quote:
Since version 1.1.1 it support Streamer Plugin by Incognito. Now objects can be created through CreateDynamicObject. To do this, include the streamer and uncomment "#define USE_INCOGNITO_STREAMER"


Changelog:

Code:
- v1.0.0 Initial release (21 fixed places)

- Added Include version

- v1.1.1
Added a new fix (MAPFIX_PLACE_22)
Added functions CreateMapFixObjects() and DestroyMapFixObjects()
Compatible with Streamer Plugin

- v1.2.2
Added new fixes (MAPFIX_PLACE_23 and MAPFIX_PLACE_24)
Fixed compatibility with Streamer Plugin

- v1.3.2
Added new fixes (MAPFIX_PLACE_25 - MAPFIX_PLACE_29)

- v1.4.2
Added new fixes (MAPFIX_PLACE_30, MAPFIX_PLACE_31 and MAPFIX_PLACE_32)

- v1.5.3
Added new fixes (MAPFIX_PLACE_33 - MAPFIX_PLACE_37)
Now the floor in the interior in MAPFIX_PLACE_25 will be created through the CreateObject function (even if the streamer is included)

- v1.6.3
Added new fixes (MAPFIX_PLACE_38, MAPFIX_PLACE_39 and MAPFIX_PLACE_40)

- v1.7.4
Added new fixes (MAPFIX_PLACE_41 - MAPFIX_PLACE_47)
Ñompleted yet MAPFIX_PLACE_2

- v1.8.5
Added new fixes (MAPFIX_PLACE_48, MAPFIX_PLACE_49 and MAPFIX_PLACE_50)
Ñompleted yet MAPFIX_PLACE_47

- v1.9.6
Added new fixes (MAPFIX_PLACE_51, MAPFIX_PLACE_52 and MAPFIX_PLACE_53)
Now some objects are invisible
Ñompleted yet MAPFIX_PLACE_50

- v2.0.0
Added new fixes (MAPFIX_PLACE_54, MAPFIX_PLACE_55 and MAPFIX_PLACE_56)
Changed disable places system in the script

- v2.1.1
Added new fixes (MAPFIX_PLACE_57 - MAPFIX_PLACE_64)
Ñompleted yet MAPFIX_PLACE_39

- v2.2.1
Added new fixes (MAPFIX_PLACE_65, MAPFIX_PLACE_66 and MAPFIX_PLACE_67)

- v2.3.1
Added new fix (MAPFIX_PLACE_68)

- v2.3.2
Ñompleted yet MAPFIX_PLACE_2

- v2.3.3
Fixed DestroyMapFixObjects() function

- v2.3.4
Added new fixes (MAPFIX_PLACE_69, MAPFIX_PLACE_70 and MAPFIX_PLACE_71)

- v2.3.5
Added new fix (MAPFIX_PLACE_72)

- v2.3.6
Ñompleted yet MAPFIX_PLACE_28

- v2.3.7
Fixed the "flickering" textures at a distance from the objects
Therefore when using Streamer, objects will now be created only in a certain interior

- v2.3.8
Added new fix (MAPFIX_PLACE_73)

- v2.4.8
Added new fix (MAPFIX_PLACE_74)

- v2.5.8
Added new fixes (MAPFIX_PLACE_75 - MAPFIX_PLACE_80)

- v2.6.8
Added new fix (MAPFIX_PLACE_81)

- v2.7.9
Added new fixes (MAPFIX_PLACE_82 - MAPFIX_PLACE_90)
Minor improvements

- v2.8.0
Compatible with y_hooks (include version)
Minor improvements

- v2.8.1
Ñompleted yet MAPFIX_PLACE_4

- v2.9.1
Added new fixes (MAPFIX_PLACE_91 - MAPFIX_PLACE_95)

- v3.0.0
Added new fixes (MAPFIX_PLACE_96 - MAPFIX_PLACE_100)

Credits:
  • Lordzy - Transparent/Invisible Objects tutorial
  • Daniel_Cortez, Pottus - advices and suggestions
  • ziggi - tips, texture bug ¹81 (mapping)
  • WoasryXxL - texture bug ¹2 (supplement), 42, 45, 49, 50, 52, 53
  • Romzes - texture bug ¹24, 30, 38, 41, 47 (supplement), 69, 70, 71
  • KrutoyKrosch - texture bug ¹4 (supplement), 96
  • KinG7 - texture bug ¹91, 92, 93, 94, 95
  • Jimmi - texture bug ¹40, 72 (mapping)
  • Kar - texture bug ¹2 (supplement), 72
  • [CM]Rider - texture bug ¹18
  • Vadyanga - texture bug ¹22
  • Admigo - texture bug ¹25
  • Crayder - texture bug ¹31
  • SoNik)) - texture bug ¹51
  • Vitalik_Gonsor - texture bug ¹54
  • brokens - texture bug ¹73
  • Apec - texture bug ¹74 (mapping)
  • m1n1vv - MapFix logo design

If you know about some places with texture bugs that have not been fixed yet - please report them in this thread.
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker

Last edited by OstGot; 29/08/2017 at 09:52 PM. Reason: v3.0.0
OstGot is offline   Reply With Quote
Old 12/10/2015, 01:56 PM   #2
XBrianX
Huge Clucker
 
Join Date: May 2015
Location: Dubai
Posts: 455
Reputation: 50
Default Re: MapFix - texture bugs fixes

Good job! (Rep'd)
XBrianX is offline   Reply With Quote
Old 12/10/2015, 01:57 PM   #3
1Darge
Little Clucker
 
1Darge's Avatar
 
Join Date: Sep 2015
Location: Province of Kirov
Posts: 4
Reputation: 1
Default Re: MapFix - texture bugs fixes

Nice job
__________________
力士
1Darge is offline   Reply With Quote
Old 12/10/2015, 02:54 PM   #4
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,308
Reputation: 1164
Default Re: MapFix - texture bugs fixes

Needs to have an option to use streamer objects who wants to waste that many object slots for such little reward it doesn't make sense to me.

You also have a bad habit of using arrays incorrectly if you are referencing array indexes with numbers you better have a good reason to do it other wise you are making big mistakes in overall system design.
Pottus is offline   Reply With Quote
Old 12/10/2015, 04:19 PM   #5
Redguard
Little Clucker
 
Redguard's Avatar
 
Join Date: Nov 2014
Posts: 31
Reputation: 3
Default Re: MapFix - texture bugs fixes

Quote:
Originally Posted by Pottus View Post
Needs to have an option to use streamer objects who wants to waste that many object slots for such little reward it doesn't make sense to me.
This.

Good effort on it though. I knew about maybe 2-3 of the spots you had on there, but the rest I didn't even know existed.
Redguard is offline   Reply With Quote
Old 13/10/2015, 01:23 PM   #6
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 589
Reputation: 247
Default Re: MapFix - texture bugs fixes

Update to version 1.1.1
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 13/10/2015, 01:37 PM   #7
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,308
Reputation: 1164
Default Re: MapFix - texture bugs fixes

There should be a pre-processor directive in OnFilterScriptExit() in case the streamer is not used to delete all the objects.

Also, stock DestroyMapFixObjects() this should be a static function even though it's in a filterscript you could still use this as an include instead. Obviously you will be calling this function automatically if the object type is type object the streamer automatically deletes all created objects.
Pottus is offline   Reply With Quote
Old 13/10/2015, 04:11 PM   #8
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,125
Reputation: 450
Default Re: MapFix - texture bugs fixes

Nice, please continue adding fixes.
Kar is offline   Reply With Quote
Old 13/10/2015, 05:12 PM   #9
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,027
Reputation: 274
Default Re: MapFix - texture bugs fixes

Nice mate, suggestion: Fix the welcome pump interior.
Interiorid: 1 Pos: 681.557861,-455.680053,-25.609874
__________________

Admigo is offline   Reply With Quote
Old 13/10/2015, 10:41 PM   #10
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 528
Reputation: 113
Default Re: MapFix - texture bugs fixes

There's a small mistake in your code: SetObjectMaterial() is used even if object is created using CreateDynamicObject(). The same mistake at DestroyObject() too.

Anyway, thanks for fixes. Some of them are really annoying.
Spmn is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Texture Studio - Texture your maps Crayder Filterscripts 512 14/11/2017 06:32 AM
[FilterScript] Texture Studio - Texture your maps Pottus Filterscripts 462 20/07/2015 11:35 PM
Invisible Texture bugs in interior (SetObjectMaterial) Basssiiie Bug Reports 6 28/07/2013 12:40 PM
[Include] [INC] ErroR's new generation user system [BUGS FIXES! V1.3!] erorcun Includes 48 30/05/2010 11:29 AM


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.