x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Problem implementing TCP/IP code tutorial

hi , there i m very new to c++ programming i was trying to implement Rama's code inside a new project so that i can play my game from an andriod device but getting error for #include

Info ERROR: The first include statement in source file '......\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp' is trying to include the file 'String' as the precompiled header, but that file could not be located in any of the module's include search paths.

i tried this but didn't help

& i couldn't understand this one

can u suggest something

thanks in advance

Product Version: UE 4.8
Tags:
more ▼

asked Jun 27 '15 at 04:26 PM in C++ Programming

avatar image

Indradhanu
1 1 2 1

avatar image Indradhanu Jun 28 '15 at 02:58 PM

if i include following files

 // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
 #include "Car_CPP.h"
 #include <String>
 #include "Car_CPPPawn.h"
 #include "Car_CPPWheelFront.h"
 #include "Car_CPPWheelRear.h"
 #include "Car_CPPHud.h"
 #include "Components/SkeletalMeshComponent.h"
 #include "GameFramework/SpringArmComponent.h"
 #include "Camera/CameraComponent.h"
 #include "Components/InputComponent.h"
 #include "Vehicles/WheeledVehicleMovementComponent4W.h"
 #include "Engine/SkeletalMesh.h"
 #include "Engine.h"

ACar_CPPPawn::ACar_CPPPawn()
{ . . . . . }

void ACar_CPPPawn::SetupPlayerInputComponent(class UInputComponent* InputComponent) { . . . . . }

void ACar_CPPPawn::Laaaaaauuuunch() { //IP = 192.168.1.2, Port = 8890 for my Python test case if (!StartTCPReceiver("RamaSocketListener", "192.168.1.2", 8890)) { //UE_LOG "TCP Socket Listener Created!" return; }

 //UE_LOG  "TCP Socket Listener Created! Yay!"

}

but Getting Following Error

 [2015.06.26-07.26.38:614][ 16]CompilerResultsLog:Error: Error O:\Projects\UE4\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp(172)  : error C2664: 'int32 FString::ParseIntoArray(TArray<FString,FDefaultAllocator> &,const TCHAR **,int32,bool) const' : cannot convert argument 1 from 'TArray<FString,FDefaultAllocator> *' to 'TArray<FString,FDefaultAllocator> &'
 [2015.06.26-07.26.38:614][ 16]CompilerResultsLog:Error: Error O:\Projects\UE4\EDU_Projects\Car_CPP\Source\Car_CPP\Car_CPPPawn.cpp(190)  : error C3861: 'VShow': identifier not found
 
avatar image Jamie Wu Oct 21 '16 at 04:07 PM

Hello IndraDhanu, Do you solve your errors? Can you teach me how to? Thank you!

avatar image Indradhanu Oct 21 '16 at 05:42 PM

Hi Jamie , I couldn't solve that issue at that time, later i gave up Sorry to disappoint Thanks Indradhanu

avatar image Jamie Wu Oct 22 '16 at 11:54 AM

So hows your approach of connecting engine using tcpip? Thank you

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Dear IndraDhanu,

Sounds like you are forgetting to include your own game's precompiled header before using my code ?

 // <~~~ You have to put your game or plugin include here,, #include "YourGame.h"
 #include <string>
 
 void AJoyPCEditor::StartsTheWholeProcess!()
 {
     if( ! StartTCPReceiver("RamaSocketListener", "127.0.0.1", 8890))
     {
         VShow("Could not create the Socket Listener!");
         return;
     }
 }

Rama

more ▼

answered Jun 27 '15 at 09:02 PM

avatar image

Rama
10.6k 445 343 1083

avatar image Indradhanu Jun 30 '15 at 12:15 PM
 // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
  #include "Car_CPP.h"
  #include <String>
  #include "Car_CPPPawn.h"
  #include "Car_CPPWheelFront.h"
  #include "Car_CPPWheelRear.h"
  #include "Car_CPPHud.h"
  #include "Components/SkeletalMeshComponent.h"
  #include "GameFramework/SpringArmComponent.h"
  #include "Camera/CameraComponent.h"
  #include "Components/InputComponent.h"
  #include "Vehicles/WheeledVehicleMovementComponent4W.h"
  #include "Engine/SkeletalMesh.h"
  #include "Engine.h"

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question