SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > 0.3.7 RC Scripting

 
 
Thread Tools Display Modes
Old 24/01/2015, 07:18 AM   #1
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Location: Oblivion
Posts: 660
Reputation: 2320
Flowers SA-MP 0.3.7 RC (now released)


SA-MP 0.3.7 RC

Note: SA-MP 0.3.7 is now released. This thread will be archived.

Updates:

SA-MP 0.3.7 RC6-3 Optional server update

- If an actor animation has the loop or freeze parameter enabled, the animation will be automatically reapplied when the actor streams in for players.

SA-MP 0.3.7 RC6-2 Optional server update

- Fixes the DestroyActor() function.
- Adds OnActorStreamIn/OnActorStreamOut.

SA-MP 0.3.7 RC6 Client/Server update

- Adds simple static actor system. There are cases where it requires too much effort to create a new NPC, and you don't want to use up an additional player slot. The 'actor' system has been added for these cases. See a_actor.inc for a list of functions.
- Fixes a problem with the server browser where the server properties window showed Map instead of Language.

SA-MP 0.3.7 RC5 Client/Server update

- Fixes a problem with txd texture loading introduced in 0.3.7-RC4 which could cause map objects to become white (rendered with no texture) if a TextDraw txd sprite was created and destroyed.
- Upgrades connection cookie system: adds server variable "connseedtime" to specify how often the connection cookie seed value updates.
- Adds native SetObjectsDefaultCameraCol(disable); which can be called to set the default value of the camera collisions for newly created objects.
- Adds server variable "language (string)". "Language" replaces the "Map" column and filter in the SA-MP server browser. This can be set to any value by the server owner. The "mapname" variable will still appear in the rules list.

SA-MP 0.3.7 RC4-2 Optional client update

- Some players weren't happy with the new position of the death list, so it has been moved back to where was in 0.3z.
- There were some text clipping problems on the death list that should be fixed.

SA-MP 0.3.7 RC4-2 Optional server update

- The siren state was not updated internally before OnVehicleSirenStateChange was called.
- Parameter checks on CreateVehicle/AddStaticVehicleEx in case scripts that use these functions were not recompiled prior to upgrading to 0.3.7.
- The ls_beachside.pwn filterscript was updated to remove the building night lights. This was needed to remove the occulsion boxes inside the interior.

SA-MP 0.3.7 RC4 Client/Server update

- Fixes texture loading 'memory leak' which effected object text material replacements and material replacements where the texture was set to full alpha.
- Fixes weapon changing bullet ID/weapon ID desync (aka spraybug).
- Adds audio siren capability to all cars. There is a new default parameter at the end of CreateVehicle/AddStaticVehicleEx for enabling the audio siren instead of the normal horn.
- Adds vehicle door open/close ability to the server script.
- Adds vehicle windows open/close ability to the server script.
- Cuffed animation issues (SPECIAL_ACTION_CUFFED): There were still problems with this animation on certain skins where the arms would poke through the back of the model. Any existing handcuff attachments will probably need their positions updated again. There is a new handcuff model (11749) that are based on the ones from the game's opening cutscene.
- The mouse cursor will be disabled when the GTA:SA window is activated (returning from alt-tab etc).
- The LS BeachSide building is now replaced by SA-MP's one by default (similar to the LS Office Floors building). This was done because it works better with the game's existing LODs and has less problems with camera collisions.

Adds 61 new object IDs from Matite.

Audio siren related functions:
Code:
native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawndelay, addsiren=0);
native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay, addsiren=0);
forward OnVehicleSirenStateChange(playerid, vehicleid, newstate);
native GetVehicleParamsSirenState(vehicleid);

Important: Since there are changes to the parameters for CreateVehicle and AddStaticVehicleEx, all scripts using these functions should be compiled for 0.3.7. The code does not need to be updated however since the parameters have default values.

Car door/window functions:
Code:
native SetVehicleParamsCarDoors(vehicleid, driver, passenger, backleft, backright);
native GetVehicleParamsCarDoors(vehicleid, &driver, &passenger, &backleft, &backright);
native SetVehicleParamsCarWindows(vehicleid, driver, passenger, backleft, backright);
native GetVehicleParamsCarWindows(vehicleid, &driver, &passenger, &backleft, &backright);

SA-MP 0.3.7 RC3-3 Optional client update

- Fixed: The skins added for RC3 were not working as model previews.
- More fixes for camera collisions with objects attached to vehicles.
- After respawn the player might be left with CJ running anims.
- There were still dialog list width problems.

SA-MP 0.3.7 RC3-2 Optional client update

- The selected item for tablist dialogs was not being reset when a new dialog was shown.
- Fixes a dialog width calculation problem for list type dialogs which might lead to column text being truncated.

SA-MP 0.3.7 RC3 Client/Server update

- Fixes chat window 'directmode' which was broken since the font size changing was added.
- The streaming memory allocation amount uses the total system memory found by Windows, not the available memory.
- Fixes problems with the scoreboard and dialog lists where the last items could not be clicked on without scrolling.
- Fixes spacing between dialog text and dialog buttons at the bottom.
- Adds new dialog types DIALOG_STYLE_TABLIST and DIALOG_STYLE_TABLIST_HEADERS which are extensions of the LIST type dialog with support for columns.
For example usage of the TABLIST style, please see the commands /testtablist and /testtablistheaders in the test_cmds filterscript.
TABLISTS allow up to 4 columns, with 128 maximum characters per column and 256 maximum characters per row.

- New object IDs added by Matite:
140 new objects
New filterscripts added demonstrating some of the objects/building replacements.
12 variations of the existing skins (skin ID 300-311). These are mostly modified versions of the cop skins from the game (no accessories etc). The skins are still WIP, so please don't complain if they are changed before the final 0.3.7 release.

SA-MP 0.3.7 RC2 Client/Server update

- Some people complained that the default font sizes were not the same as the ones from the previous SA-MP releases. The font sizes used as default are the same defaults from previous 0.3 versions.
- Fixes additional camera collision problems on objects (some issues still remain outside 3000 units).
- More changes to camera targeting should improve things a bit.
- Adds /ctd client command to enable client debugging of the player camera target.
- DisableRemoteVehicleCollisions() should work for boats.
- No more camera collisions with vehicles when DisableRemoteVehicleCollisions() is enabled.
- Adds EnablePlayerCameraTarget(). The camera targeting functions added in 0.3.7-RC1 will be disabled by default as it may use bandwidth on servers when it's not needed.
- Adds SetObjectNoCameraCol()/SetPlayerObjectNoCameraCol() to disable camera collisions on the selected object ID. This function only works on objects outside the normal map boundries for now.
- Adds GetPlayerPoolSize()/GetVehiclePoolSize() to obtain the highest playerid/vehicleid in use.
- The server will only come in a 1000 player variation from now on since there should be no performance difference between a 500 player server and 1000 player server. If you have existing script loops bound to MAX_PLAYERS or MAX_VEHICLES you should consider rewriting these loops to use GetPlayerPoolSize()/GetVehiclePoolSize(). Alternatively, redefine MAX_PLAYERS lower in your script or by editing the SA-MP pawn includes.

Example:
Code:
// Old code
for(new x=0; x < MAX_PLAYERS; x++) {
    if(IsPlayerConnected(x)) { // do stuff with a player id
    }
}

// New code
new HighestPlayerId = GetPlayerPoolSize();
for(new x=0; x <= HighestPlayerId; x++) { // (note the condition change from < to <=)
    if(IsPlayerConnected(x)) { // do stuff with a player id
    }
}

- Birds won't fly through SA-MP objects.
- Fixed problem where player was frozen if SelectObject() was used from a dialog response.
- Objects with a large draw distance now support alpha sorting.
- Fixes a problem with the server browser where one server might be able to fake a reply pretending to come from another server.

- Adds over 90 new objects created by Matite:
The LS BeachSide building and LS apartment buildings now have underground car parks.
New house sections with interiors for the island land objects:


SA-MP 0.3.7 RC1 Client/Server update

- Adds UI font size, face, weight changing.
UI font size can be changed with the /fontsize command in the client. Valid fontsize is -3 to 5.
- Although not officially supported, the font face and weight can be changed by editing the sa-mp.cfg file:
Code:
fontface="Comic Sans MS"
fontweight=1
Supported font weights are 0 = BOLD (default) and 1 = NORMAL.

- The SA-MP client will now dynamically select the steaming memory amount for GTA:SA based on how much RAM is available. If you have a 'streaming memory fix' mod, it should no longer be needed and you should delete it. The streaming memory stats are available under the F5 screen in SA-MP.

- Adds over 240 objects created by Matite.
- Example scripts for using some of the new objects/features, including stunt_island.pwn, modular_island.pwn, ls_beachside.pwn etc.
- Adds fishing idle animation and example script.
- SelectObject() function can select objects that have no collision.
- Scoreboard will be larger if the game resolution is bigger than 800x600.
- Adds checks for bad floats/vectors in bike lean, train speed, camera's AimZ, bullet offset.
- Adds DisableRemoteVehicleCollisions() function to disable collisions between vehicles driven by other players.
- The editor 'Test' mode time/weather is now fixed. You can change the time/weather with /set_time and /set_weather.
- Default draw distance for editor 'Test' mode objects is 599.0.
- Removed the Idle camera (camera shake).
- Adds connection cookie system to prevent spoofed connection flooding.
- Syncs the weapon ID with the shot info, meaning there is no chance of shot/weapon desync in the OnPlayerWeaponShot callback.
- Fix camera collision problem when objects attached to vehicle you are in.
- Fixes for vertex lighting/time of day updates when an object has a draw distance > 300.0.
- Fixes UV texture animation on objects with > 300.0 draw distance.
- Fixes camera collisions on objects and vehicles that are outside the normal world map.
- Adds weather cull zones for Verona mall, LS BeachSide, LS Apartment Building, LS Office Floors to the SAMP/samp.ipl file.
- Fixed a problem in RakNet which meant the NetStats_* functions could not be used if the player ID wasn't fully connected to SA-MP.
- Adds functions: GetObjectModel(), GetPlayerObjectModel().
- Adds functions: GetPlayerCameraTargetObject(playerid), GetPlayerCameraTargetVehicle(playerid), GetPlayerCameraTargetPlayer(playerid) to find the network object the player is looking at.
- Vehicle rotation syncing should be smoother.

Downloads:

0.3.7 RC6 Client
SA-MP 0.3.7 RC6 Client Installer

0.3.7 RC6 Server
SA-MP 0.3.7 RC6 Windows Server
SA-MP 0.3.7 RC6 Linux Server

0.3.7 RC5 Client
SA-MP 0.3.7 RC5 Client Installer

0.3.7 RC5 Server
SA-MP 0.3.7 RC5 Windows Server
SA-MP 0.3.7 RC5 Linux Server

0.3.7 RC4 Client
SA-MP 0.3.7 RC4 Client Installer

0.3.7 RC4 Server
SA-MP 0.3.7 RC4 Windows Server
SA-MP 0.3.7 RC4 Linux Server

0.3.7 RC3-3 Client
SA-MP 0.3.7 RC3 Client Installer

0.3.7 RC3 Server
SA-MP 0.3.7 RC3 Windows Server
SA-MP 0.3.7 RC3 Linux Server

0.3.7 RC2 Client
SA-MP 0.3.7 RC2 Client Installer

0.3.7 RC2 Server
SA-MP 0.3.7 RC2 Windows Server
SA-MP 0.3.7 RC2 Linux Server

0.3.7 RC1 Client
SA-MP 0.3.7 RC1 Client Installer

0.3.7 RC1 Server
SA-MP 0.3.7 RC1 Windows Server
SA-MP 0.3.7 RC1 Linux Server

Last edited by Kalcor; 01/05/2015 at 04:43 AM.
Kalcor is offline  
Old 24/01/2015, 11:09 AM   #2
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,208
Reputation: 169
Default Re: SA-MP 0.3.7 RC1

The new camera functions will make a lot of use.
__________________


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.

Last edited by Tamer; 20/01/2016 at 10:06 PM.
Tamer is offline  
Old 24/01/2015, 11:09 AM   #3
ATomas
Big Clucker
 
Join Date: Jul 2009
Posts: 160
Reputation: 3
Default Re: SA-MP 0.3.7 RC1

Awesome !
ATomas is offline  
Old 24/01/2015, 11:10 AM   #4
T-N-Z
Huge Clucker
 
Join Date: May 2007
Posts: 234
Reputation: 23
Default Re: SA-MP 0.3.7 RC1

Finally!
T-N-Z is offline  
Old 24/01/2015, 11:10 AM   #5
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 581
Reputation: 83
Default Re: SA-MP 0.3.7 RC1

Finally! Keep it up!
Kirollos is offline  
Old 24/01/2015, 11:11 AM   #6
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,018
Reputation: 267
Default Re: SA-MP 0.3.7 RC1

Awesome features. Great work Kalcor.
__________________

Admigo is offline  
Old 24/01/2015, 11:15 AM   #7
QuaTTrO
Gangsta
 
QuaTTrO's Avatar
 
Join Date: Aug 2009
Posts: 564
Reputation: 66
Default Re: SA-MP 0.3.7 RC1

Quote:
The SA-MP client will now dynamically select the steaming memory amount for GTA:SA based on how much RAM is available. If you have a 'streaming memory fix' mod, it should no longer be needed and you should delete it. The streaming memory stats are available under the F5 screen in SA-MP.
Noice.
__________________


QuaTTrO is offline  
Old 24/01/2015, 11:16 AM   #8
TomyZ
Huge Clucker
 
TomyZ's Avatar
 
Join Date: Feb 2011
Location: ThePawn
Posts: 280
Reputation: 4
Default Re : SA-MP 0.3.7 RC1

Nice !
__________________

Le classement officiel des serveurs sa-mp français.

- La théorie c'est quand rien ne fonctionne mais tout le monde sait pourquoi.
- La pratique c'est quand tout fonctionne mais personne ne sait pourquoi.
- Chez moi la théorie et la pratique sont réunies, rien ne fonctionne et personne ne sait pourquoi.

TomyZ is offline  
Old 24/01/2015, 11:16 AM   #9
Lordzy
High-roller
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,824
Reputation: 1074
Default Re: SA-MP 0.3.7 RC1

Glad to know, gonna try it right now!
__________________
[Include]safeDialogs - Complete protection against dialog responses! (dialog ids, list-items, input-text of list-item and user)

I don't play at any SA-MP servers now. If you see anyone with my name, that's not me.
Lordzy is offline  
Old 24/01/2015, 11:17 AM   #10
Sledgehammer
Gangsta
 
Sledgehammer's Avatar
 
Join Date: Jun 2013
Location: My computer
Posts: 537
Reputation: 113
Default Re: SA-MP 0.3.7 RC1

I'm quite pleased a new release has came out. Any release/ bug fix is better than nothing, though other members may not appreciate.

Going to start testing.
__________________

Last edited by Sledgehammer; 24/01/2015 at 11:50 AM.
Sledgehammer is offline  
 

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



All times are GMT. The time now is 08:57 AM.


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