Juan Linietsky
38338e90c0
ENet windows compilation fixes.
...
For reference, when you include a Windows header (be it directly windows.h or something that includes it)
put it at the end of the includes. it seems I forgot.
2016-08-20 01:05:57 -03:00
Juan Linietsky
2fa693273c
Many fixes to networking, demo should work now
2016-08-19 18:44:09 -03:00
Juan Linietsky
1add52b55e
Brand new networked multiplayer
2016-08-19 16:48:41 -03:00
vkbsb
91ba00b416
VisualScript: Adding TOOLS_ENABLED flag where needed ( #6144 )
...
Fixes #6022 .
2016-08-15 09:54:02 +02:00
Juan Linietsky
3db36684b1
Added high level networked multiplayer to Godot.
...
It's complete, but absolutely and completely untested, undocumented and NSFW.
Have fun :-)
2016-08-14 18:49:50 -03:00
Juan Linietsky
01bdfe1ff6
Missing some bits, and added connection status.
2016-08-14 14:07:23 -03:00
Juan Linietsky
c21aae65b6
-Added an ENet implementation for NetworkedMultiplayerPeer for "a bit higher level" networking.
2016-08-14 14:07:23 -03:00
Johan Manuel
a4674bda47
Fix some comparisons between signed and unsigned integers
2016-08-13 13:21:35 +02:00
Johan Manuel
67b29e3b9e
Fix some warnings about misleading indentation
2016-08-13 13:21:35 +02:00
Johan Manuel
046f94d3ac
Remove some unused variables
2016-08-13 13:21:35 +02:00
Rémi Verschelde
5d9967ef00
Merge pull request #6055 from eska014/native-bind-rettype
...
Allow documenting unexposed return types in bind_native_method
2016-08-08 18:23:36 +02:00
Rémi Verschelde
38cbf69e24
Merge pull request #6045 from bojidar-bg/extends-on-placeholders
...
Fix #5891 by not expecting the script instance to be a GDInstance
2016-08-08 10:22:13 +02:00
Juan Linietsky
72748d1363
-Show proper node name in subcall
...
-Implemented Ctrl-F to focus script type search
2016-08-08 01:41:57 -03:00
Juan Linietsky
9865650b43
Added a simpler way to do sub-functions in both visual and gdscript with the subcall node.
...
With this, visual script is almost done (missing registering custom nodes from addon).
All this is probably pretty broken, too and needs a lot of testing.
2016-08-08 01:21:22 -03:00
Juan Linietsky
cfbdeeffec
Added ability to create custom nodes from script.
2016-08-07 21:22:14 -03:00
Juan Linietsky
0b8f0670c5
Automatically turn on process callbacks if relevant callbacks in node exists
2016-08-07 20:08:15 -03:00
Juan Linietsky
b77200728e
-Added yield nodes to visual script
...
-Added input selection nodes to visual script
-Added script create icon for those who miss it, will only appear when it can be used.
2016-08-07 19:22:33 -03:00
Juan Linietsky
6671c6bdc7
Added yield() signal smart autocompletion.
2016-08-06 22:11:03 -03:00
Juan Linietsky
9714a36e65
Reverted printable null object, seems to cause bugs around and not sure why.
...
Will have to check better, likely for 3.0
2016-08-06 20:13:27 -03:00
Juan Linietsky
9890c1d2ca
Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done!
2016-08-06 19:00:54 -03:00
Juan Linietsky
259418f827
VisualScript can now execute visual scripts, but there is no debugger or profiler yet.
2016-08-05 22:48:00 -03:00
eska
4cd246898e
Allow documenting unexposed return types in bind_native_method
...
Document return type of `Object.call` and `GDScript.new`
2016-08-06 02:21:29 +02:00
Bojidar Marinov
76ea995228
Fix #5891 by not expecting the script instance to be a GDInstance
...
It could be a placeholder instance as well
2016-08-05 13:44:12 +03:00
Juan Linietsky
6ed5d48d0c
Concluded base visual scripting! can edit but not run though.
2016-08-04 00:05:35 -03:00
Juan Linietsky
cd25624667
More work on visual scripting..
2016-08-03 22:07:03 -03:00
Juan Linietsky
d8af6330e5
More progress on visual script editing
2016-08-03 11:28:43 -03:00
Rémi Verschelde
e51f4725fe
Fix translatable strings in VisualScript
2016-08-03 07:26:36 +02:00
Juan Linietsky
3d1d190dcd
Merge branch 'master' of https://github.com/godotengine/godot
2016-08-02 19:11:47 -03:00
Juan Linietsky
ad313097eb
WIP visual scripting, not working yet but you can check out stuff
2016-08-02 19:11:05 -03:00
eska
b80c42ef4e
Document FuncRef, GDFunctionState, InstancePlaceholder, RID, World2D
2016-07-30 21:27:58 +02:00
Juan Linietsky
9151eb591d
Changed the way the step decimals are computed to a safer way, fixes many issues.
2016-07-26 17:25:10 -03:00
Juan Linietsky
f51a816253
Set proper line into operators when parsing GDScript, fixes #5822
2016-07-22 09:23:26 -03:00
Juan Linietsky
33cc480350
Fixed reloading of tool scripts within editor, they should work much better now, closes #3194
2016-07-20 22:37:48 -03:00
Juan Linietsky
5218f35b7f
Forgot to clear signals on recompile, closes #5729
2016-07-17 13:49:59 -03:00
George Marques
8113ba8bef
Allow semicolon after 'pass' keyword
2016-07-10 12:20:53 -03:00
George Marques
4bf31b3f3d
Revert removing of function call in gd_parser
...
The function call was removed in #5538 because of the unused return value,
but the function itself has side effects and the absence of the call was
causing crashes.
2016-07-08 22:12:59 -03:00
Rémi Verschelde
b6ac91c0e6
Removed unused variables (first pass)
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:03 +02:00
Juan Linietsky
48959f0590
Merge pull request #5407 from RandomShaper/opt-self-indexing
...
Optimize member access with self
2016-07-01 12:25:26 -03:00
Juan Linietsky
e49b73e93a
Only check for constants when parsing constants, should close #5497
2016-06-30 10:40:13 -03:00
Juan Linietsky
cf0fbe493f
Ability to put constants in constant expressions, closes #5264
2016-06-29 22:17:55 -03:00
Juan Linietsky
36e754457f
Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes
2016-06-29 21:06:16 -03:00
Juan Linietsky
3754f6cd75
Properly show the source:line even in inner clases, closes #3766
2016-06-28 11:49:57 -03:00
Juan Linietsky
cf6450043d
Fix bug in inner class reference, closes #1411
2016-06-28 11:15:55 -03:00
Juan Linietsky
f4c6640827
Fixed bug related to resolving constants in a class, closes #1110
2016-06-28 11:02:53 -03:00
Juan Linietsky
565bb3afcc
Fix extends issue, closes #4026
2016-06-28 10:44:38 -03:00
George Marques
dc2ec3140a
Fix cscript module syntax errors for MSVC compiler
2016-06-26 14:19:46 -03:00
Juan Linietsky
f31a6d26f1
missing files
2016-06-26 11:02:15 -03:00
Juan Linietsky
3813160ea0
-Fix crashes with thread_exit()
...
-Added draft of C script API (still disabled and unused)
2016-06-26 10:54:45 -03:00
Pedro J. Estébanez
d306b9bea5
Optimize member access with self
...
Let the compiler take the fast path when a member is superfluously accessed with `self.`.
2016-06-25 15:59:39 +02:00
Andreas Haas
c871cf6801
Add "bool" to GDScript reserverd keywords
...
Noticed that "bool" wasn't highlighted when used like `export(bool) var is_xy = false`
2016-06-24 17:47:19 +02:00
Juan Linietsky
95e3279d34
Properly report a valid error instead of reporting as a bug, closes #3841
2016-06-24 10:30:36 -03:00
Juan Linietsky
5e816fd8c8
Property reporty base type when a function fails, fixes #4581 probably also closes other issues
2016-06-20 01:15:02 -03:00
Rémi Verschelde
e76f744c36
Merge pull request #5283 from djrm/remove_prints
...
Removed lots of prints
2016-06-19 13:10:23 +02:00
Rémi Verschelde
1923733ec8
Merge pull request #5268 from brakhane/fix-floating-bug
...
correctly parse floats in scientific notation (Fix #5267 )
2016-06-19 13:05:00 +02:00
Daniel J. Ramirez
422fac5066
Removed lots of prints
2016-06-18 18:01:06 -05:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Dennis Brakhane
c246931f03
correctly parse floats in scientific notation
...
GDScript incorrectly parsed float values in scientific notation
when no decimal point was given. "1e-5" was parsed as "15".
Fix this by not requiring a decimal point when we found an exponent
for the number to be considered a float.
Fixes #5267
2016-06-18 13:20:45 +02:00
Geequlim
71245995a4
Add @GDScript.type_exists
2016-06-18 15:07:51 +08:00
Juan Linietsky
57c67fb0f7
reverted to ==, if a line is missing a statement, we'll have to make sure to add it
2016-06-17 21:57:46 -03:00
Juan Linietsky
dcd50f8838
changed == for >= since some statements may not store a line (if line is empty)
...
this is added to #5204
2016-06-17 21:19:09 -03:00
Juan Linietsky
3ddce309f4
Merge pull request #5204 from vnen/fix-completion-crash
...
Fix crash in code completion
2016-06-17 21:09:18 -03:00
Rémi Verschelde
7723579237
Fix type hint for the seed argument
...
Closes #5260 .
2016-06-18 01:18:06 +02:00
George Marques
17b6cebcfe
Fix crash in code completion
...
Fix #4641
2016-06-13 22:19:39 -03:00
George Marques
7127f0943d
Merge pull request #5139 from zaps166/init_navigation_pointer
...
GridMap: Initialize "navigation" pointer
2016-06-13 12:16:00 -03:00
Juan Linietsky
45443a1651
Changed reload logic to auto-hard-reload scripts on save. It's simpler to use and also fixes #4756
2016-06-13 10:58:32 -03:00
Juan Linietsky
4667f9e61e
Changed how min/max icon size in ItemList works and replaced it by a fixed size. Fixes many issues, closes #4907
2016-06-12 16:52:22 -03:00
Juan Linietsky
ceeb5453a8
gdscript tokenizer will dislike use of case, closes #4991
2016-06-11 21:45:37 -03:00
Juan Linietsky
fea9511bc6
remove unnecesary found bug? print, closes #5028
2016-06-11 20:36:28 -03:00
Juan Linietsky
f860915ae0
Made many built-in gdscript functions return more descriptive errors, closes #5150
2016-06-11 19:43:38 -03:00
Juan Linietsky
9ddc13a5cc
-All variables from script are visible through get_property_list(), not just those with export()
...
-Added PROPERTY_USAGE_SCRIPT_VARIABLE to identify what comes from script
-closes #5146
2016-06-11 18:34:49 -03:00
Błażej Szczygieł
3d931f3353
GridMap: Initialize "navigation" pointer
2016-06-10 12:47:38 +02:00
Juan Linietsky
f8f30662d9
-Ability to reload (and soft reload) tool scripts. Please test!
2016-06-08 20:00:52 -03:00
punto-
86253cbdfe
Revert "Fix implicit GDScript Reference inheritance"
2016-06-06 23:40:50 -03:00
eska
3acbf8e71f
Fix implicit GDScript Reference inheritance
2016-06-05 19:17:33 +02:00
George Marques
43dad78209
Fix Color8 constructor using wrong value range
...
Fix #5015
2016-06-03 14:59:40 -03:00
Juan Linietsky
cc0a7b24e7
missed ifdef that broke android build
2016-06-01 20:44:34 -03:00
Juan Linietsky
9e745b920f
Ability to reload scripts on running game
2016-06-01 20:31:42 -03:00
Juan Linietsky
df139f57b3
Some cleanup to GDScript
...
separated GDFunction (VM) from GDScript in two different files
2016-05-31 22:33:43 -03:00
Juan Linietsky
3e8eb396d7
Finalized DynamicFont implementation
...
-DynamicFont uses Freetype by default
-Editor fonts are now scalable thanks to this
-Cleaned up documentation browser and added fonts for this
2016-05-29 11:37:52 -03:00
Ignacio Armenteros
7caabd9398
Fix #4748 : proper call to base class function
2016-05-23 11:49:51 +02:00
Juan Linietsky
a75f896338
First version of Profiler
...
It is now possible to profile GDScript as well as some parts of Godot
internals.
2016-05-21 21:18:16 -03:00
Rémi Verschelde
b58e261d41
GDScript: Fix method info for is_nan and is_inf
...
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
2016-05-17 14:59:48 +02:00
Juan Linietsky
0c57a58056
ability to drag scenes from filesystem to tree for instancing
2016-05-11 20:57:52 -03:00
Rémi Verschelde
8259c46707
GridMap: Fix backwards rotate hotkeys ( #4498 )
...
Fixes #1237
2016-05-01 11:38:08 +02:00
Rémi Verschelde
c0ec7e933a
Merge pull request #4302 from Anarchid/gridmap-navmesh
...
Navmesh support for GridMaps
2016-04-20 21:12:35 +02:00
Anarchid
b03a892f95
manually fix indent
2016-04-20 21:21:51 +03:00
Anarchid
73ca831848
Implement GridMap support for navigation meshes
2016-04-20 21:19:05 +03:00
Saracen
d643a40f95
Subclasses can now extend from other subclasses contained in scripts derived from relative paths.
2016-04-09 03:23:33 +01:00
Rémi Verschelde
2f12c2dd90
Merge pull request #4169 from slapin/ik
...
InverseKinematics node, basic features
2016-04-06 18:32:38 +02:00
Rémi Verschelde
0a5472e697
Remove trailing spaces
2016-04-02 20:26:12 +02:00
Sergey Lapin
eae5169dfd
Now parameters can be changed real time
2016-03-31 12:44:35 +03:00
Sergey Lapin
e4fea5d5f9
Added speed setting
2016-03-31 12:44:25 +03:00
Sergey Lapin
8d7a94389a
InverseKinematics node, basic features
...
I don't already know how the fuck it works, but it is.
A bit slow currently, but hope to improve it soon.
The current limitations:
1. No constraints. At all.
2. Used simplest CCD algorithm, I just can't believe
in jacobian construction from code.
3. Slow to get to target.
2016-03-31 12:43:00 +03:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
Rémi Verschelde
002ff3cc9a
Revert "Merge pull request #3814 from est31/iterators_for_for"
...
This reverts commit adf5056889
, reversing
changes made to ee2bc87c0e
.
2016-03-01 18:09:48 +01:00
Juan Linietsky
210d332def
-wip on addon editor
...
-fixes instantiable subclasses not working, as reported in #3871
2016-02-29 09:57:38 -03:00
est31
5f66692395
Use xrange for common "for i in range(...)" use case
...
Make the parser eliminate a wasteful allocation and initialisation
of a possibly large array.
2016-02-28 22:47:48 +01:00
est31
f81153eb69
Add xrange builtin function
...
Also update classes.xml in order to document xrange
2016-02-28 22:47:48 +01:00
Juan Linietsky
6fc1c3a4d1
Completed the support for plugins! It is not possible to add plugins.
...
Not all APIs are provided yet, please request whathever you are missing.
Some example plugins are provided in demos/plugins. Just copy them to a folder in your project named addons/ and then enable them from the project settings.
Have fun!
2016-02-27 23:12:27 -03:00