ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: intygamer on August 10, 2013, 08:26:15 PM

Title: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 10, 2013, 08:26:15 PM
I tested out the new network functions and get the following error:  Unknown function or script `net_init'

Also tested net_cleanup and net_connect_tcp got the same thing.

Before I started I recloned github, updated binaries and winpatch.
I have Ubuntu 12.04

Maybe there is an extension I need to download or settings to change.

Please help.

Thanks
Joe
 
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 11, 2013, 06:32:21 AM
intygamer, yes, go Build->Settings and enable Berkeley Sockets networking system under the "API" tab. Then you just need to install curl headers for http functions.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 11, 2013, 08:16:27 PM
Robert,  I don't see this option in api for lgm16b4.  Is this only in v1.8? 

I tried loading up 1.8 but it stops at loading plugins.  I updated java with the one in Ubuntu's repo: openjdk-7-jre , this did not remedy that.

Thanks
Joe
 
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 11, 2013, 08:34:14 PM
intygamer, on Linux, just rerun the python install.py script, or manually update to the latest LGM from the topic here...
http://enigma-dev.org/forums/index.php?topic=1245.0
And yes, you do need 1.8 in order to use Networking.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 13, 2013, 05:08:45 PM
Robert, I got LGM1.8  working, thanks for your help. 

My problem now is games will not run with Berkley Socket enabled in build/settings.

I have curl 7.22 and libhttp-cookies-perl 6.0 installed for curl headers from Unbuntu repo.  I know curl headers need to be installed for http network commands.

Here is what I get after trying to run a small test game.

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 0xb698aad0
Copying resources:
Copying sprite names [0]
Copying sound names [0]
Copying background names [0]
Copying path names [0]
Copying script names [0]
Copying font names [2]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [1]
Copying room names [1]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
1 Objects:
 obj_connection: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_connection::create... Done. Parse... Done.
  Event[8]:   Parsing 1 sub-events:
Check `obj_connection::draw... Done. Parse... Done.
  Event[9]:   Parsing 5 sub-events:
Check `obj_connection::keypress_67... Done. Parse... Done.
Check `obj_connection::keypress_73... Done. Parse... Done.
Check `obj_connection::keypress_81... Done. Parse... Done.
Check `obj_connection::keypress_82... Done. Parse... Done.
Check `obj_connection::keypress_84... Done. Parse... Done.
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
Finished
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Writing font data
Writing room data
Running make from `make'
Full command line: make Game GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=None NETWORKING=BerkeleySockets PLATFORM=xlib CXX=g++ CC=gcc COMPILEPATH=Linux/Linux EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures" OUTPUTNAME="/tmp/egm8311361980314724028.tmp" eTCpath=""
/usr/bin/make -C ENIGMAsystem/SHELL
make[1]: Entering directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/BerkeleySockets/Info -IUniversal_System/Info -I. -Wall -s -O3   -MMD -MP -c -o .eobjs/Linux/Linux/Run/Networking_Systems/BerkeleySockets/BS_ip.o Networking_Systems/BerkeleySockets/BS_ip.cpp
Networking_Systems/BerkeleySockets/BS_ip.cpp:26:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/BerkeleySockets/Info -IUniversal_System/Info -I. -Wall -s -O3   -MMD -MP -c -o .eobjs/Linux/Linux/Run/Networking_Systems/BerkeleySockets/BS_browser.o Networking_Systems/BerkeleySockets/BS_browser.cpp
Networking_Systems/BerkeleySockets/BS_browser.cpp: In function ‘void ftpsend(int, const char*)’:
Networking_Systems/BerkeleySockets/BS_browser.cpp:63:33: error: ‘net_send’ was not declared in this scope
Networking_Systems/BerkeleySockets/BS_browser.cpp: In function ‘void ftpparse(int, const char*, const char*, const char*)’:
Networking_Systems/BerkeleySockets/BS_browser.cpp:73:30: error: ‘net_send’ was not declared in this scope
Networking_Systems/BerkeleySockets/BS_browser.cpp: In function ‘void net_ftp_send(int, std::string, std::string, int)’:
Networking_Systems/BerkeleySockets/BS_browser.cpp:113:63: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
Networking_Systems/BerkeleySockets/BS_browser.cpp:118:25: error: ‘net_send’ was not declared in this scope
Networking_Systems/BerkeleySockets/BS_browser.cpp: In function ‘std::string net_http(std::string, std::string)’:
Networking_Systems/BerkeleySockets/BS_browser.cpp:135:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Networking_Systems/BerkeleySockets/BS_browser.cpp:141:31: error: ‘net_send’ was not declared in this scope
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/BerkeleySockets/Info -IUniversal_System/Info -I. -Wall -s -O3   -MMD -MP -c -o .eobjs/Linux/Linux/Run/SHELLmain.o SHELLmain.cpp
In file included from SHELLmain.cpp:96:0:
Preprocessor_Environment_Editable/IDE_EDIT_evparent.h: In member function ‘virtual variant enigma::event_parent::myevents_perf(int, int)’:
Preprocessor_Environment_Editable/IDE_EDIT_evparent.h:63:56: warning: no return statement in function returning non-void [-Wreturn-type]
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make: *** [Game] Error 2

Thanks
Joe
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 13, 2013, 05:15:40 PM
intygamer, I am sorry, thats my fault, I renamed that function to net_send_raw, son of a gun, I tested it too before I committed it, I'll have to fix those, I am busy adding GMX to LGM right now, then I'll get right on it.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 13, 2013, 08:48:47 PM
Thanks Robert.  Please let me know and I'll try it again.

Thanks
Joe
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 13, 2013, 09:54:45 PM
if I was you I would check out the EDC in the meantime, noone even noticed the cool games I found that work the same as Game Maker, including Minecraft!
http://enigma-dev.org/edc/games.php?action=list

For the minecraft one though make sure you update through git as I had to commit a fix to ds_grid initializing and filling with 0 when created, otherwise the game will load and you'll just see a bunch of yellow blocks :P

It won't be long for me to fix networking though, I just need to finish up this GMX stuff with LGM before I can start something else, here is my progress from one day so far...
(http://oi41.tinypic.com/sl7mhc.jpg)
Just give me a couple of days.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 24, 2013, 07:09:17 PM
Thanks Robert, no big hurry.  Thanks for the games link.  I got a couple of them to work except for Minecraft. 

Today I updated the git and LGM 1.8, Not sure whats wrong?

This is build info on Mindcraft.

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 0xb0fc2470
Copying resources:
Copying sprite names [5]
Copying sound names [0]
Copying background names [1]
Copying path names [0]
Copying script names [21]
Copying font names [1]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [4]
Copying room names [1]
SYNTAX CHECKING AND PRIMARY PARSING:
21 Scripts:
Parsed `remove_block': 1 locals, 0 globals
Parsed `update_model': 5 locals, 0 globals
Parsed `add_block': 1 locals, 0 globals
Parsed `draw_world': 0 locals, 0 globals
Parsed `world_generator': 0 locals, 0 globals
Parsed `load_world': 0 locals, 0 globals
Parsed `save_world': 0 locals, 0 globals
Parsed `destroy_world': 0 locals, 0 globals
Parsed `which_model': 0 locals, 0 globals
Parsed `world_init': 0 locals, 0 globals
Parsed `frustum_culling_init': 0 locals, 0 globals
Parsed `frustum_culling': 0 locals, 0 globals
Parsed `add_ball': 0 locals, 0 globals
Parsed `remove_ball': 0 locals, 0 globals
Parsed `collide': 4 locals, 0 globals
Parsed `block_intersect': 6 locals, 0 globals
Parsed `update_sides': 0 locals, 0 globals
Parsed `add_blocks_from_sprite': 2 locals, 0 globals
Parsed `get_max_z': 0 locals, 0 globals
Parsed `boundaries': 3 locals, 0 globals
Parsed `init_shadow': 0 locals, 0 globals
"Linking" scripts
`Linking' 21 scripts in 5 passes...
Completing script "Link"
Linking `remove_block':
Linking `update_model':
Linking `add_block':
Linking `draw_world':
Linking `world_generator':
Linking `load_world':
Linking `save_world':
Linking `destroy_world':
Linking `which_model':
Linking `world_init':
Linking `frustum_culling_init':
Linking `frustum_culling':
Linking `add_ball':
Linking `remove_ball':
Linking `collide':
Linking `block_intersect':
Linking `update_sides':
Linking `add_blocks_from_sprite':
Linking `get_max_z':
Linking `boundaries':
Linking `init_shadow':
Done.
4 Objects:
 obj_world: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_world::create... Done. Parse... Done.
  Event[3]:   Parsing 1 sub-events:
Check `obj_world::step... Done. Parse... Done.
  Event[7]:   Parsing 1 sub-events:
Check `obj_world::gameend... Done. Parse... Done.
  Event[8]:   Parsing 1 sub-events:
Check `obj_world::draw... Done. Parse... Done.
 obj_player: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_player::create... Done. Parse... Done.
  Event[3]:   Parsing 2 sub-events:
Check `obj_player::step... Done. Parse... Done.
Check `obj_player::endstep... Done. Parse... Done.
  Event[8]:   Parsing 1 sub-events:
Check `obj_player::draw... Done. Parse... Done.
 obj_house: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_house::create... Done. Parse... Done.
 obj_tree: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_tree::create... Done. Parse... Done.
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
  Object `obj_world' calls frustum_culling with 4 parameters.
  Object `obj_world' calls frustum_culling_init with 13 parameters.
  Object `obj_world' calls load_world with 1 parameters.
  Object `obj_world' calls save_world with 1 parameters.
  Object `obj_world' calls update_model with 3 parameters.
  Object `obj_world' calls world_generator with 1 parameters.
  Object `obj_world' calls world_init with 8 parameters.
  Object `obj_player' calls add_ball with 5 parameters.
  Object `obj_player' calls add_block with 4 parameters.
  Object `obj_player' calls block_intersect with 1 parameters.
  Object `obj_player' calls boundaries with 2 parameters.
  Object `obj_player' calls collide with 2 parameters.
  Object `obj_player' calls get_max_z with 2 parameters.
  Object `obj_player' calls remove_ball with 4 parameters.
  Object `obj_player' calls remove_block with 3 parameters.
  Object `obj_player' calls which_model with 3 parameters.
  Object `obj_house' calls add_blocks_from_sprite with 4 parameters.
Finished
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Linking globals
Running Secondary Parse Passes
Add dot accessed local z
 var
Add dot accessed local cam_x
 var
Add dot accessed local cam_y
 var
Add dot accessed local cam_z
 var
Add dot accessed local cx
 var
Add dot accessed local cy
 var
Add dot accessed local cz
 var
Add dot accessed local layer
 var
Add dot accessed local sides
 var
Add dot accessed local shadow
 var
Add dot accessed local kind
 var
Add dot accessed local model_update
 var
Add dot accessed local tex_height
 var
Add dot accessed local model
 var
Add dot accessed local model_size
 var
Add dot accessed local size
 var
Add dot accessed local s1
 var
Add dot accessed local s2
 var
Add dot accessed local s3
 var
Add dot accessed local s4
 var
Add dot accessed local s5
 var
Add dot accessed local max_z
 var
Add dot accessed local texture
 var
Add dot accessed local zspeed
 var
Add dot accessed local array_counter
 var
Add dot accessed local used_sprites
 var
Add dot accessed local xfrom
 var
Add dot accessed local yfrom
 var
Add dot accessed local zfrom
 var
Add dot accessed local xto
 var
Add dot accessed local yto
 var
Add dot accessed local zto
 var
Add dot accessed local xup
 var
Add dot accessed local yup
 var
Add dot accessed local zup
 var
Add dot accessed local xcross
 var
Add dot accessed local ycross
 var
Add dot accessed local zcross
 var
Add dot accessed local frustum_culling_ytan
 var
Add dot accessed local frustum_culling_xtan
 var
Add dot accessed local frustum_culling_xsec
 var
Add dot accessed local frustum_culling_ysec
 var
Add dot accessed local znear
 var
Add dot accessed local zfar
 var
Add dot accessed local z3
 var
Add dot accessed local jump
 var
Add dot accessed local x1
 var
Add dot accessed local y1
 var
Add dot accessed local z1
 var
Add dot accessed local x2
 var
Add dot accessed local y2
 var
Add dot accessed local z2
 var
Add dot accessed local array3d
 var
Add dot accessed local spr_index
 var
Add dot accessed local blok
 var
Writing object data
Writing local accessors
Writing font data
Writing room data
Running make from `make'
Full command line: make Game GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=GTK+ NETWORKING=None PLATFORM=xlib CXX=g++ CC=gcc COMPILEPATH=Linux/Linux EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures" OUTPUTNAME="/tmp/egm5701859359874088896.tmp" eTCpath=""
/usr/bin/make -C ENIGMAsystem/SHELL
make[1]: Entering directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
mkdir -p .eobjs/Linux/Linux/Run/Widget_Systems/GTK+
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/GTK+/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -MMD -MP -c -o .eobjs/Linux/Linux/Run/Widget_Systems/GTK+/widgets.o Widget_Systems/GTK+/widgets.cpp
Widget_Systems/GTK+/widgets.cpp: In function ‘void widget_destroy(GtkObject*, gpointer)’:
Widget_Systems/GTK+/widgets.cpp:63:75: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::map<std::basic_string<char>, _GtkWidget*>::size_type {aka unsigned int}’ [-Wformat]
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/GTK+/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -MMD -MP -c -o .eobjs/Linux/Linux/Run/Widget_Systems/GTK+/gtk_impl.o Widget_Systems/GTK+/gtk_impl.cpp
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/GTK+/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -MMD -MP -c -o .eobjs/Linux/Linux/Run/Widget_Systems/GTK+/dialogs.o Widget_Systems/GTK+/dialogs.cpp
Widget_Systems/GTK+/dialogs.cpp: In function ‘std::string get_open_filename(std::string, std::string, std::string)’:
Widget_Systems/GTK+/dialogs.cpp:103:94: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const gchar* {aka const char*}’ for argument ‘1’ to ‘GtkWidget* gtk_file_chooser_dialog_new(const gchar*, GtkWindow*, GtkFileChooserAction, const gchar*, ...)’
Widget_Systems/GTK+/dialogs.cpp: In function ‘std::string get_save_filename(std::string, std::string, std::string)’:
Widget_Systems/GTK+/dialogs.cpp:130:94: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const gchar* {aka const char*}’ for argument ‘1’ to ‘GtkWidget* gtk_file_chooser_dialog_new(const gchar*, GtkWindow*, GtkFileChooserAction, const gchar*, ...)’
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make[1]: Entering directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/GTK+/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -MMD -MP -c -o .eobjs/Linux/Linux/Run/Widget_Systems/GTK+/dialogs.o Widget_Systems/GTK+/dialogs.cpp
Widget_Systems/GTK+/dialogs.cpp: In function ‘std::string get_open_filename(std::string, std::string, std::string)’:
Widget_Systems/GTK+/dialogs.cpp:103:94: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const gchar* {aka const char*}’ for argument ‘1’ to ‘GtkWidget* gtk_file_chooser_dialog_new(const gchar*, GtkWindow*, GtkFileChooserAction, const gchar*, ...)’
Widget_Systems/GTK+/dialogs.cpp: In function ‘std::string get_save_filename(std::string, std::string, std::string)’:
Widget_Systems/GTK+/dialogs.cpp:130:94: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const gchar* {aka const char*}’ for argument ‘1’ to ‘GtkWidget* gtk_file_chooser_dialog_new(const gchar*, GtkWindow*, GtkFileChooserAction, const gchar*, ...)’
g++ -Wall -s -O3 -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/GTK+/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -MMD -MP -c -o .eobjs/Linux/Linux/Run/SHELLmain.o SHELLmain.cpp
In file included from SHELLmain.cpp:96:0:
Preprocessor_Environment_Editable/IDE_EDIT_evparent.h: In member function ‘virtual variant enigma::event_parent::myevents_perf(int, int)’:
Preprocessor_Environment_Editable/IDE_EDIT_evparent.h:65:56: warning: no return statement in function returning non-void [-Wreturn-type]
In file included from SHELLmain.cpp:101:0:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function ‘variant _SCR_which_model(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:465:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:472:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:479:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function ‘variant _SCR_world_init(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:526:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
In file included from SHELLmain.cpp:101:0:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function ‘variant _SCR_block_intersect(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:768:78: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:768:78: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:768:78: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:768:78: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function ‘variant enigma::OBJ_obj_player::_SCR_block_intersect(variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1395:76: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function ‘variant enigma::OBJ_obj_player::_SCR_block_intersect(variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1395:76: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function ‘variant enigma::OBJ_obj_player::_SCR_block_intersect(variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1395:76: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function ‘variant enigma::OBJ_obj_player::_SCR_block_intersect(variant)’:
Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1395:76: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make: *** [Game] Error 2
make: *** [Game] Error 2
make: *** [Game] Error 2
make: *** [Game] Error 2

Thanks
Joe
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 24, 2013, 07:17:36 PM
Hey intygamer, we got a tag that mades code just type [] around code like quote with [] around it.

We also have one that does syntax highlighting. Uhm, your issue is with GTK, I am not on Linux so I do not know, anyway, just turn off your widget system and comment out that get_string call.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 24, 2013, 10:07:42 PM
Sorry Robert, I will use insert code button next time for compiler output.

Thanks for help.
Joe

Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 24, 2013, 10:52:05 PM
Hey it's cool dude I don't give a shit, but I think it has a scroll thingy is why ^_^
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Josh @ Dreamland on August 24, 2013, 11:59:20 PM
This is what happens when people edit code without bothering to check for things such as "does my code still compile?" before committing upstream. I've added .c_str() to the caption parameter Harri passes to the GTK functions. Try compiling now. If that doesn't work, let me know, and I'll set it up so I can fix the rest of them tomorrow.
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: TheExDeus on August 25, 2013, 06:33:33 AM
Well sadly I cannot test on Linux (which was made clear in the commit message associated with that change, which nobody bothered to read apparently). Sadly, I couldn't just make the change for Windows and leave Linux as we now have everything abstracted and put in General. So one change screws all of the changes. But I guess this is not bad either, as at least now all versions need to be compatible with one another.

This is also something that should be fixed with integration testing. When will that be operational?
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 26, 2013, 06:56:12 PM
This is what happens when people edit code without bothering to check for things such as "does my code still compile?" before committing upstream. I've added .c_str() to the caption parameter Harri passes to the GTK functions. Try compiling now. If that doesn't work, let me know, and I'll set it up so I can fix the rest of them tomorrow.

I updated git and LGM 1.8

Here is compiler output of Mindcraft where compiler failed.

Code: [Select]
eobjs/Linux/Linux/Run/Universal_System/Extensions/DataStructures/data_structures.o .eobjs/Linux/Linux/Run/Bridges/xlib-OpenGL1/graphics_bridge.o  -lz -lpthread -lX11 -lGL -lGLU -lopenal -lalure -lvorbisfile -lvorbis -ldumb -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lgthread-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lz
.eobjs/Linux/Linux/Run/SHELLmain.o: In function `enigma::OBJ_obj_world::myevent_step()':
SHELLmain.cpp:(.text+0x4a84f): undefined reference to `get_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
SHELLmain.cpp:(.text+0x4ac7b): undefined reference to `get_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: ld returned 1 exit status
make[1]: *** [compile_game] Error 1
make[1]: Leaving directory `/home/joey/enigma-dev/ENIGMAsystem/SHELL'
make: *** [Game] Error 2

Thanks
Joe
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: intygamer on August 30, 2013, 09:38:00 PM
I found the package I needed in the Ubuntu 12.04 Repo for curl/curl.h: 
Code: [Select]
libcurl4-gnutls-dev
I can now enable Berkley Sockets and compile a test game program successfully.

Here's a link to my findings to help other Ubuntu users.

http://ubuntuforums.org/showthread.php?t=1057104 (http://ubuntuforums.org/showthread.php?t=1057104)

Thanks for all help!
Joe
Title: Re: Network funtions not working: Unknown function or script `net_init'
Post by: Goombert on August 31, 2013, 01:12:52 AM
Hey that is awesome intygamer, I am really sorry I can't give feedback as often, I am really really busy,  (Y)