User:Ccw: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{MTA Developer}}
{{MTA Developer}}
== ==
=Git 2 SVN - 21 April 2010=
==Back to the cell==
=== Part One - Transfer the datum ===
# Create a new, empty subversion project with trunk/tags/branches subdirs.
# git svn clone svnurl://blah --stdlayout
# git pull git://github.com/multitheftauto/multitheftauto.git
# git svn rebase
# git svn dcommit --add-author-from
=== Part Two - Check the datum ===
# Checkout new svn repo and compare with the original
=== Part Three - Clean up the mess ===
:1. Get the svn log:<br>
::svn log svnurl://blah/trunk >log.txt<br>
:2. For each revision, change the author to the one at the end of the log message (Possibly use a lookup list to convert git usernames to svn ones)<br>
::svn propset --revprop -r revision_number svn:author new_author svnurl://blah/trunk<br>
:3. For each revision, get rid of all the unneeded crap from the log message:<br>
::svn propset --revprop -r revision_number svn:log "new message" svnurl://blah/trunk<br>
<br>
<br>


== ==
== ==

Revision as of 05:50, 21 April 2010

Coder.gif This user is an MTA developer

Git 2 SVN - 21 April 2010

Back to the cell

Part One - Transfer the datum

  1. Create a new, empty subversion project with trunk/tags/branches subdirs.
  2. git svn clone svnurl://blah --stdlayout
  3. git pull git://github.com/multitheftauto/multitheftauto.git
  4. git svn rebase
  5. git svn dcommit --add-author-from

Part Two - Check the datum

  1. Checkout new svn repo and compare with the original

Part Three - Clean up the mess

1. Get the svn log:
svn log svnurl://blah/trunk >log.txt
2. For each revision, change the author to the one at the end of the log message (Possibly use a lookup list to convert git usernames to svn ones)
svn propset --revprop -r revision_number svn:author new_author svnurl://blah/trunk
3. For each revision, get rid of all the unneeded crap from the log message:
svn propset --revprop -r revision_number svn:log "new message" svnurl://blah/trunk



Auto updater - 24 March 2010

Get latest version here

Updates are initiated either on client startup, or on when connecting to a server...


Client startup:

  1. The client polls one of two servers, sends its current version and gets update info.
  2. Update info contains:
    1. If there is a new version available
    2. Whether the update is mandatory
    3. Mirror list of servers with the update
    4. Filename and SHA1
  3. If update is selected:
    1. The file is downloaded
    2. SHA1 checked
    3. The updater is executed
    4. The client quits
  4. When the update is complete, the client is relaunched
    1. Also consider having a 'use previous version' shortcut or something, in case the new version does not run correctly


On server connect:

  1. Server tells client minimum version requirement, and ideal version requirement
  2. If client is below minimum requirement, then:
    1. The client is given an 'update' and 'disconnect' button and told they must update to join this server
    2. Pressing the update button initiates the update procedure as per 'Client startup' above.
  3. If client is below ideal requirement, then:
    1. The client is given an 'update' and 'don't update' button and told they should update to join this server
    2. Pressing the update button initiates the update procedure as per 'Client startup' above.



Merge revert party - 13 September 2009

Everyone invited


The commits listed below require moving from the git 'merge' branch into a 'post 1.0.1' branch.

Although one or two should probably be kept in 1.0.1
But which ones ?

a8b1b13ef1b88b9a8ed7e459dc6de38d670bd34b r1644 (Fixed: #4937: Stealth kill victims turn to south) committed by [email protected]
2865be7c43f7c545637ef4f996d2c22f181734bc r1643 (Fixed #4944: Chatbox scale doesnt adjust.. text width.) committed by [email protected]
ff124c7eedf8709b15416f50ae83ea15433adee0 r1642 (Fixed #4917: memory doesnt seem to be freed on ressource re...) committed by [email protected]
f83ea4f1c4072e2b70c274119dac62da894fc223 r1640 (Cleaned up an ugly player-damage bug fix.) committed by [email protected]
33022e9333624b0a75ef467ccc74915f1b5d6af6 r1626 (Fixed #4925: Friendly fire does not prevent the player from ...) committed by [email protected]
39efe48d0c4144e8695138ef004ac3fb9bcfbc50 r1624 (Fixed #4848: colShapes should be made attachable Fixed #4285...) committed by [email protected]
8851cfeae3903aa0a547d7f7bae32d92b4b29ebb r1623 (Fixed contacting peds not being updated with rotation.) committed by [email protected]
baec3bff302db9c76e1788c056ab4026eb6d45e8 r1622 (Added responsible entity for dying in a vehicle explosion.) committed by [email protected]
1ae69bdfae2fa3312f151e30cac20559818d0e27 r1621 (Fixed: #1507: Death Messages not functioning 100% (and a bu...)
32e1399c496c22bc4b472183c0145dc92397fa8e r1616 (Fixed jittering with set*Frozen) committed by [email protected]
e4c250dad37957d00766f31ea9f5d2a5d0e8aaf7 r1613 (Fixed #4859: playSound3D - sound stops when changing to othe...) committed by [email protected]
a579f2017e6d3c05684bf22aab4cca39389e2d08 r1612 (Fixed #4874: setGlitchEnabled is apparently no longer synced...) committed by [email protected]
29b29c8f6795ad753fd475ff632c900c5b87cf28 r1602 (Added missing ped-contact updating.) committed by [email protected]
8cf99290469a94826b00cf6a4e00c4f1f070f79b r1600 (Added time-based interpolation for sync. (best time-based I'...) committed by [email protected]
56ebd749a0922313fc754bbff3928f6767b5f05f r1594 (Removed dangerous model-info copying.) committed by [email protected]
a56b8373a19d5f700350183ddf0b9c076ff09b4e ?? r1581 ([No log message]) committed by [email protected]
7a94fe418932e57f737726342339e8671a4ec49c r1574 (Fixed some problems with special character model loading.) committed by [email protected]
66689a26ef7684e246866952d6aa0c73519da95e r1572 (Added special characters as unused models / removed (un)load...) committed by [email protected]
2f30704f9f2eaee2938de6c1ceda32adb4a5b5d4 r1568 (Fixed #1231: Allow use of special skins loadSpecialCharacter...) committed by [email protected]
671ec8027b2514a725f3b050f22abd9ab264ee59 r1566 (Fixed #4787: (Scrolling in Chatbox doesnt set the lines vis...) committed by ccw808
d32a92b4ae9e9699b91b251e4c74890f52d65314 r1545 (Fixed bad rotation for moveObject & updated moving-objects c...) committed by [email protected]
f72eaf32db673a8a3ea6324d61bd5fd703b91980 r1517 (Changed CSmoothVar to CInterpolatedVar, removed frame depend...) committed by [email protected]
805b22a67232de1680cdbe53b0e84185d566126d r1506 (Added remote tank-firing effect for rhinos.) committed by [email protected]
89c028a7e14e1b7c82e49002ac39eaa0a1790e29 r1497 (Removed unnecessary landing-gear smoothing.) committed by [email protected]
93cbee8ff7a2c1f786428422846104dfcbcaa84f r1492 (Added smooth vars to improve sync for turrets/landing-gear...) committed by [email protected]
43158e5f1dfc35b0d74a3fd557ab5e0ad705dfcb r1489 (Fixed #4653: Dying in an exploding vehicle gives MTA the wro...)
9e397129049d40a1a4d70b48d94b512c9b4e1093 r1486 (Fixed #4458: isPedInVehicle delay) committed by [email protected]
578d8da39f42667499b32189dcdf56d4b9def53c r1478 (Fixed #4785: When taking a photo with the camera, chatbox an...) committed by [email protected]
c6a0309bd97bbfbe56038d993574cbdf75c24f97 r1469 (Changed onClientCharacter to support all characters: onClien...) committed by [email protected]
3ef02ef219d4ddd7a5b12152193ed58a331a5f15 r1468 (Fixed #3482: request: onClientKey ( state ) onClientKey ( st...) committed by [email protected]
d79b5902916102612658eda15c79c40ccc6be474 r1466 (Fixed #4776: Killing peds with sniper rifle cases scope view...) committed by [email protected]
7e5e76cb236783e558e1d124e6a81173606e9793 r1460 (Re-added MTA Radio including: radio-switch event Fix for #...) committed by [email protected]


1.0 Release dumps - 10 September 2009

Loaded up, noted notes.

All dumps in a zip are here [1]

client_Release_08222009_2258.dmp 0004869: Crash while playing Stealth Unhandled exception at gta_sa.exe!004d1750() FrameUpdateCallBackWithVelocityExtractionSkinned
client_Release_08222009_2342.dmp 0004872: Crash in Briefcase Race Unhandled exception at gta_sa.exe!004d464e() CAnimManager::BlendAnimation
client_Release_08222009_2351.dmp 0004871: Crash while playing Stealth 2 Unhandled exception at gta_sa.exe!004d464e() CAnimManager::BlendAnimation
client_Release_08232009_0014.dmp 0004881: Crash during assault play Unhandled exception at gta_sa.exe!004f02d3() CAESoundManager::Service
client_Release_08232009_0019.dmp 0004871: Crash while playing Stealth 2 Unhandled exception at gta_sa.exe!004d1750() FrameUpdateCallBackWithVelocityExtractionSkinned ( Maybe called from HOOK_CGame_Process() in CMultiplayerSA.cpp )
client_Release_08232009_0315.dmp 0004876: Crash during Race Access violation in CClientVehicle::Create()
client_Release_08232009_1402.dmp 0004877: Runtime error - pure virtual function call Unhandled exception at gta_sa.exe!006819eb() CTaskManager::GetSimplestActiveTask
client_Release_08242009_1231.dmp 0004861: When disconnecting from a server you get a C++ error or a crash! Unhandled exception at gta_sa.exe!00739fa0() CShotInfo::Update ( Maybe called from HOOK_Idle() in cmultiplayersa.cpp )
client_Release_08242009_1717.dmp 0004898: Random CTD's/Freezing Unhandled exception at gta_sa.exe!006b18b0() CAutomobile::ProcessControl ( Maybe called from CVehicleSA::GetDriver() in CVehicleSA.cpp )
client_Release_08252009_1120.dmp 0004898: Random CTD's/Freezing Unhandled exception at gta_sa.exe!004d41c5() CAnimManager::UncompressAnimation ( Maybe called from HOOK_CPlayerPed__ProcessControl() in multiplayer_keysync.cpp )
client_Release_08252009_1624.dmp 0004898: Random CTD's/Freezing Unhandled exception at gta_sa.exe!004d446e() CAnimManager::BlendAnimation ( Maybe called from HOOK_CPlayerPed__ProcessControl() in multiplayer_keysync.cpp )
client_Release_08252009_1754.dmp 0004899: Crash in Briefcase Race during gun fight Unhandled exception at gta_sa.exe!004d446e() CAnimManager::BlendAnimation ( Maybe called from HOOK_CPlayerPed__ProcessControl() in multiplayer_keysync.cpp )
client_Release_08272009_1609.dmp 0004909: Crash when moving camera while being inside a radar area Unhandled exception at 0x459ac002
.
client_Release_08232009_0009.dmp KWKSND Client crash Unhandled exception at gta_sa.exe!004d1750() FrameUpdateCallBackWithVelocityExtractionSkinned ( Maybe called from HOOK_CGame_Process() in CMultiplayerSA.cpp )
client_Release_08232009_0032.dmp KWKSND Client crash Unhandled exception at gta_sa.exe!004d1750() FrameUpdateCallBackWithVelocityExtractionSkinned ( Maybe called from HOOK_CGame_Process() in CMultiplayerSA.cpp )
client_Release_08242009_2311.dmp KWKSND Client crash Access violation in CTCPManager::~CTCPManager ( Client quitting )
client_Release_08252009_1659.dmp KWKSND Client crash Unhandled exception at cgui.dll!CEGUI::EventSet::addEvent()
client_Release_09022009_0016.dmp KWKSND Client crash Unhandled exception at gta_sa.exe!007f3825() RwTextureDestroy ( Maybe called from CRenderWareSA::DestroyDFF)
.
server_Release_08222009_2138.dmp KWKSND Server crash *Source mismatch*
server_Release_08232009_0154.dmp KWKSND Server crash Access violation at CResource::InvalidateIncludedResourceReference (During server shutdown)
server_Release_08252009_0038.dmp KWKSND Server crash Access violation at CResource::InvalidateIncludedResourceReference (During server shutdown)
server_Release_08262009_2139.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_08262009_2248.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_08272009_1644.dmp KWKSND Server crash Unhandled exception at lua5.1.dll!00e94f11() ( Maybe called from CResource::HasResourceChanged() in CResource.cpp )
server_Release_08272009_2148.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_08282009_2019.dmp KWKSND Server crash Unhandled exception at lua5.1.dll!00e92af5()
server_Release_08292009_2051.dmp KWKSND Server crash Access violation at CResource::InvalidateIncludedResourceReference (During server shutdown)
server_Release_08302009_0238.dmp KWKSND Server crash Access violation at CResource::InvalidateIncludedResourceReference (During server shutdown)
server_Release_09032009_0023.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_09072009_1131.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_09082009_1053.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll
server_Release_09092009_0119.dmp KWKSND Server crash Access violation at CElementDeleter::DoDeleteAll



Proposed Lua additions - 20 June 2009

Client and server function

setElementFrozen ( element, bool )

To work with vehicles, peds and dynamic objects like barrels and what not.

Server event

onSettingChange ( name, oldValue, newValue )

So the resource can take action if one of its settings get changed. Could even cancel the change I suppose.