111 Commits

Author SHA1 Message Date
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
674609f5ee Workaround for server software that sends AddEntity then AddExtPlayerName with different player ids.
This caused duplicate tab list entry ids. Only seems to be an issue with MCForge-Redux
2017-02-16 23:30:49 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
55093847db initial entity rotation. breaks multiplayer. 2017-01-25 21:16:11 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
75f0a73841 Style: Indent catch and switch properly. 2016-12-02 15:31:34 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
f0047be63c Style: Remove CommandReader class, move stuff from ClassicalSharp.TexturePack to ClassicalSharp.Textures 2016-10-17 17:15:24 +11:00
UnknownShadow200
49d16aa701 Style: Modularise protocol functions. 2016-09-15 12:02:19 +10:00
UnknownShadow200
0ab5ef4434 Rename INetworkProcessor to the more descriptive IServerConnection, since it does not necessarily actually use the network. 2016-09-11 12:52:00 +10:00
UnknownShadow200
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
a28d2a38fd Increase 'Connection timeout' threshold to 30 seconds, avoid StringReader and replace with our own ReadLine() method. 2016-08-15 16:43:55 +10:00
UnknownShadow200
bd1f2c9597 Oops we need to use SocketException instead of IOException now. 2016-08-15 13:22:55 +10:00
UnknownShadow200
0936dd7e50 Use raw socket receive/send instead of NetworkStream. 2016-08-15 13:18:46 +10:00
UnknownShadow200
0331311360 Increase network data reading frequency from 20 to 60 seconds when loading a map, this makes receiving map faster. (Especially on localhost and LAN servers, around half the time) 2016-08-06 15:39:03 +10:00
UnknownShadow200
38be2f192e Make ticking tasks code more extensible. 2016-08-06 15:06:20 +10:00
UnknownShadow200
b732b8a58a Fix receiving handshake packet settings 'receivedFirstPosition' to false (thanks again opticalza), optimise skybox rendering to avoid unnecessary clear call. 2016-07-07 00:09:52 +10:00
UnknownShadow200
927ef5b2b6 Fix mistakes in handling when our own player name is different to username. (Thanks opticalza) 2016-07-05 15:32:13 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
b303330921 Log error if it occurs with Program.CopyFiles (not that it ever should). 2016-06-04 19:04:48 +10:00
UnknownShadow200
603fe097ff Fix only being able to define 5 hotkeys. 2016-06-03 17:52:56 +10:00
UnknownShadow200
c4f1f69cbd Use a single tab list code base for both CPE ExtPlayerList and original tab list behaviour. 2016-05-29 21:37:38 +10:00
UnknownShadow200
4c0b6ea1d6 Use safer method of incrementing pointers. 2016-05-25 22:16:38 +10:00
UnknownShadow200
fba550f3c2 Use generic BlockChanged event instead of hardcoding behaviour in PickingHandler. 2016-05-21 15:06:38 +10:00
UnknownShadow200
05a8f5f598 Finish EnvMapAppearance v3 (now EnvMapAspect to avoid breaking backwards compatibility.) 2016-05-12 17:50:45 +10:00
UnknownShadow200
67395247f2 Initial work on EnvMapAppearance version 3. 2016-05-12 09:40:02 +10:00
UnknownShadow200
37273895dc Properly reset CPE state on server reconnection. 2016-05-09 23:35:44 +10:00
UnknownShadow200
fc4028f013 Initial work on adding Reset method to IGameComponent. (To reset state for reconnection to a server) 2016-04-24 23:13:29 +10:00
UnknownShadow200
f3ed4d4c40 Make NetworkProcessor less hardcoded and more extensible. 2016-04-24 22:57:15 +10:00
UnknownShadow200
ce2efa5ba9 Properly fix workaround for D3 server bug. (Thanks Evander) 2016-04-13 21:30:14 +10:00
UnknownShadow200
634b3213c3 Modularise LocalPlayer.Physics into separate PhysicsComponent. 2016-03-31 21:25:25 +11:00
UnknownShadow200
7a2e5d6049 Organise most things into namespaces. 2016-03-27 09:33:51 +11:00
UnknownShadow200
a78205c45a Add copyright notices to every source file. 2016-03-26 13:51:42 +11:00
UnknownShadow200
7af045f9a9 Text input now properly wraps colour codes across multiple lines. (Thanks xnotx123) 2016-03-24 13:11:26 +11:00
UnknownShadow200
d70851a1b9 Pure classic mode should not intefere with normal mode settings. (Thanks FabTheZen) 2016-03-23 23:28:23 +11:00
UnknownShadow200
b859739cb7 Show texture pack download status in top right corner. 2016-03-02 13:37:45 +11:00
UnknownShadow200
672ebf696d Super quick fix for last commit not compiling. 2016-02-29 14:44:53 +11:00
UnknownShadow200
d16ba9bfc6 Optimise network reading - only need to move memory after all pending packets are processed, not after each field. 2016-02-29 14:43:31 +11:00
UnknownShadow200
3e05ba60de Make jump height calculation more precise and only show three significant figures (Thanks MrGoober), also always show generate/load options but disabled in multiplayer. 2016-02-27 08:54:37 +11:00
UnknownShadow200
1275ece957 Support saving/loading BlockDefinitions blocks in singleplayer. 2016-02-09 16:18:02 +11:00
UnknownShadow200
4811f15bf3 Announcement texture should be in top quarter, fix non-32 bpp terrain.png files crashing client when saved to texturecache (Thanks goodlyay), fix hotkeys not being removed when closing client then the launcher (Thanks 123DontMessWitMe). 2016-02-07 11:59:53 +11:00
UnknownShadow200
c28e1f343f Default speed modifier should be 10, to match ClassiCube. 2016-02-05 21:39:51 +11:00
UnknownShadow200
95c7eaa6ca Initial implementation of version 2 of BlockDefinitionsExt. 2016-02-01 15:29:27 +11:00
UnknownShadow200
358de19090 Timeout 20 seconds (not 10 seconds) after last packet now, not just ping packet. 2016-01-31 08:19:01 +11:00
UnknownShadow200
f6d083f280 Slightly reduce own player bobbing to be less noticable (Thanks Cecil), add a confirmation dialog when selecting 'no/always no' to a texture pack (Thanks goodlyay), move arial chat font back to its more logical place in gui options. (Thanks FabTheZen) 2016-01-15 22:18:11 +11:00
UnknownShadow200
7c7bc4e79d Add 'use CPE' button to nostalgia settings. 2016-01-12 22:15:54 +11:00
UnknownShadow200
bbe3820e95 Initial implementation of head vs body yaw roation, also use default.png in more places instead of always hardcoding arial. (Thanks Vladcosmonaut) 2016-01-12 21:32:31 +11:00
UnknownShadow200
a4c548cd14 Initial implementation of nostalgia options - can turn off custom blocks, and can turn off using server textures. 2016-01-11 19:44:50 +11:00
UnknownShadow200
b79de4c457 Create and implement the CpeTextColours extension. 2016-01-10 21:05:46 +11:00
UnknownShadow200
5e5ee2a1cd Allow changing jump height and fov again. 2016-01-02 22:51:38 +11:00