logolinksrand Hamburg City Freelancer Server Foren-Übersicht
Players:0/64    *Mod here*
Server Load:0 msec 
Deaths per Minute:0
logorechts  
  SERVERIP : hc.flserver.de:2302
Discord Community: https://discord.gg/xh4ckhY


 
  Portal  •  Forum-FAQ  •   Suchen  •  Registrieren  •  Einloggen, um private Nachrichten zu lesen  •  Login  
  Donation/Spenden  •   Donation List  •   HC Forum Rangsystem Info  •   Player Rankings  •   Banned Players  
/

   
 How too code your own code in FLHook and compile it. Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
[TCEagles]crashbx
Fleet Captain


financial_expert_silber time_bandit_gold basefinder_bronze jumpholefinder_silber

rpgchar

Playtime: 2237h
Webmissions: 1


Beiträge: 952

Beitrag Titel: How too code your own code in FLHook and compile it.
Verfasst am: 01.05.07 03:47
Antworten mit ZitatNach oben

I decided too little play with FLHook, i was coding in C++ long time ago so i have a question, for FLHook.

I downloaded FLhook and i found out there are 2 folders inside.
bin and flhook1.5.5src

Flhook is working if i copy bin folder content(FlhookStart, FLHook.ini, FLHook.dll, FLHookWString.dll) in freelancer exe folder.

But i decided too check little in folder flhook1.5.5src and edit/add some new user commands for ping too file C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmD.cpp

Now my question is how too compile now this .cpp file so i can start using new commands, i tryed too compile the new code in Dev-C++ program but i get loads off some errors, even if i dont put my code.

Code:
Compiler: Default compiler
Executing  g++.exe...
g++.exe "C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp" -o "C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.exe"    -I"C:\Programi\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"  -I"C:\Programi\Dev-Cpp\include\c++\3.4.2\backward"  -I"C:\Programi\Dev-Cpp\include\c++\3.4.2\mingw32"  -I"C:\Programi\Dev-Cpp\include\c++\3.4.2"  -I"C:\Programi\Dev-Cpp\include"   -L"C:\Programi\Dev-Cpp\lib"
In file included from C:\Igre\flhook1.5.5\flhook1.5.5src\source\/hook.h:9,
                 from C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:1:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/flcodec.h:7:7: warning: no newline at end of file
In file included from C:\Igre\flhook1.5.5\flhook1.5.5src\source\/hook.h:10,
                 from C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:1:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:34: error: use of enum `MissionMessageType' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:34: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:181: error: use of enum `CommResult' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:181: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:186: error: use of enum `EFLConnection' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:186: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:241: error: use of enum `InvincibilityReason' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:241: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:245: error: use of enum `EFLConnection' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:245: error: ISO C++ forbids declaration of `parameter' with no type
In file included from C:\Igre\flhook1.5.5\flhook1.5.5src\source\/hook.h:10,
                 from C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:1:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/server.h:304:7: warning: no newline at end of file
In file included from C:\Igre\flhook1.5.5\flhook1.5.5src\source\/hook.h:11,
                 from C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:1:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:126: error: use of enum `DamageCause' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:126: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:128: error: use of enum `DamageCause' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:128: error: ISO C++ forbids declaration of `get_cause' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:135: error: use of enum `DamageCause' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:135: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:201: error: use of enum `HpAttachmentType' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:241: error: use of enum `HpAttachmentType' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:241: error: ISO C++ forbids declaration of `get_hp_type_by_index' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:304: error: use of enum `ThrustEquipType' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:338: error: use of enum `StrafeDir' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:338: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:366: error: use of enum `TERMINAL_TYPE' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:366: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:367: error: expected type-name
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:367: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:368: error: expected type-name
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:368: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:369: error: expected type-name
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:369: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:370: error: expected type-name
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:370: error: ISO C++ forbids declaration of `parameter' with no type
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:387: error: use of enum `EquipmentValType' without previous declaration
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/common.h:387: error: ISO C++ forbids declaration of `parameter' with no type
In file included from C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:1:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\/hook.h:541:7: warning: no newline at end of file
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp: In function `void UserCmd_IgnoreID(uint, std::wstring)':
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:282: error: invalid conversion from `const short unsigned int*' to `const wchar_t*'
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:282: error:   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>]'
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp: In function `void UserCmd_InviteID(uint, std::wstring)':
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:536: error: invalid conversion from `const short unsigned int*' to `const wchar_t*'
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:536: error:   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>]'
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp: At global scope:
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:570: error: `UserCmd_Serverload' was not declared in this scope
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp: In function `void UserCmd_Serverload()':
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:621: error: `Print' undeclared (first use this function)
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:621: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Igre\flhook1.5.5\flhook1.5.5src\source\HkUserCmd.cpp:622:2: warning: no newline at end of file
Execution terminated


Maybe i am doing something wrong so i would ask you guys too help me how too compile new code right and which tool should i use so i can start implementing my own code but this thing is stoping me...

Thx for answer
[TCEagles]crashbx is offline Benutzer-Profile anzeigenPrivate Nachricht senden
w0dk4
Lieutenant


financial_expert_bronze time_bandit_gold jumpholefinder_bronze rpgchar

urgestein_gold hcl04_silber developer kreuz_gold


Deppenadmin² und sich damit abgefunden !
Playtime: 1008h
Webmissions: 8


Beiträge: 9012
Wohnort: Heidelberg

Beitrag Titel:
Verfasst am: 01.05.07 14:35
Antworten mit ZitatNach oben

You need the Microsoft Visual Studio C++ to compile the FLHook Source, the project files are included.

A better place to ask that kind of questions: http://www.drachennest200x.de/flhook/forum/

_________________
http://www.freeworldstidesofwar.com
http://the-starport.net
w0dk4 is offline Benutzer-Profile anzeigenPrivate Nachricht senden
[TCEagles]crashbx
Fleet Captain


financial_expert_silber time_bandit_gold basefinder_bronze jumpholefinder_silber

rpgchar

Playtime: 2237h
Webmissions: 1


Beiträge: 952

Beitrag Titel:
Verfasst am: 01.05.07 18:39
Antworten mit ZitatNach oben

I am registered there form year 2006 when it was open but they dont want too activate my account maybe something personal cause my clan was baned on their server :/ We were not doing anything illegal just some ppl didnt found our way killing pirates in same view and they decided too ban us and remove us from server, very deep situations that shocked half of lancers comunity around the world. But its behind now and i just wanna know some answers related on FLhook and maybe contribute also something in it
Can u activate my account on this forum http://www.drachennest200x.de/flhook/forum/

And i will try make that kind of questions there.
I believe this Microsoft visual studio c++ isnt free right ? Or you can get it for free somewhere
[TCEagles]crashbx is offline Benutzer-Profile anzeigenPrivate Nachricht senden
[FC]Bougnat







Beiträge: 7

Beitrag Titel:
Verfasst am: 06.05.07 15:52
Antworten mit ZitatNach oben

there is a limited, but free version, you can get it on the microsoft website Wink
[FC]Bougnat is offline Benutzer-Profile anzeigenPrivate Nachricht senden
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.


 



AD(S)-Hilfe
Last 10 Deaths


Google





   
  11 users on website
powered by 230 volt, phpBB with modifications by Niwo. Alle Zeiten sind GMT + 1 Stunde
This page has been viewed 230447852 times.
Servertime: 04:26:41 Current server uptime: 37 days, 0 users, load average: 0.09, 0.10, Server Disk Space free: 24842 MB


Spendenkontostand / donating account balance
Page generation time: 0.3202s (PHP: 44% - SQL: 56%) - SQL queries: 20 - GZIP disabled - Debug off