User Profile

Collapse

Profile Sidebar

Collapse
game2d
game2d
Last Activity: Nov 9 '15, 12:57 PM
Joined: Apr 8 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to replace string with variable in substring?

    How to replace string with variable in substring? btw im using vb

    I have a below query that work fine but I just want to replace "ra*" with a variable. How can I do this?

    Code:
    SELECT DISTINCT a.[rank], b.Description
        FROM CONTAINSTABLE(myTable, *, '"ra*'") AS a
            INNER JOIN myTable AS b ON a[key] = b.ID
                 ORDER BY a.rank desc;
    Below is what I tried...
    See more | Go to post

  • I have below 2 queries and I want to combine them together.

    I need some help writing a sql query. I have below 2 queries and I want to combine them together.

    Now I already tried 'union' but it doesn't work.

    I first want to print all results of query1 than at bottom of that I want to print all results for query2.

    --Query#1
    Code:
    SELECT DISTINCT a.[rank], b.Description
        FROM CONTAINSTABLE(myTable, *, '"ra*'") AS a
            INNER JOIN myTable AS
    ...
    See more | Go to post

  • game2d
    replied to How to change x and y position
    in Java
    here is what i tried. but didnt worked bc CreatePlayer() method is in Main class constructor.


    // main class
    Code:
    
        public class main{
          ...
          public main(){
              createPlayer();
          }
          
          private void createPlayer() {
            BodyDef bdef = new BodyDef();
            Body body;
            FixtureDef fdef = new FixtureDef();
    ...
    See more | Go to post

    Leave a comment:


  • game2d
    started a topic How to change x and y position
    in Java

    How to change x and y position

    Hi,
    I am using Java, Libgdx, box2d


    I main class I have created a body and I set player x and y position to 50.


    Code:
    // main class
    public class main{
      ...
      private void createPlayer() {
    	BodyDef bdef = new BodyDef();
    	Body body;
    	FixtureDef fdef = new FixtureDef();
    	PolygonShape shape = new PolygonShape();
    
    	/*** Body - Player ***/
    ...
    See more | Go to post

  • game2d
    started a topic how to create groovy client? getting an error, below.
    in Java

    how to create groovy client? getting an error, below.

    how to create groovy client? getting an error, below.


    start up jboss with following paremater:
    Code:
    set JAVA_OPTS= -Djava.rmi.server.hostname=localhost
                   -Dcom.sun.management.jmxremote.ssl=false
                   -Dcom.sun.management.jmxremote.authenticate=true
                   -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk1.7.0\jre\lib\management\jmxremote.password
                   -D
    ...
    See more | Go to post

  • game2d
    replied to Jboss log manager error
    in Java
    ***note*** When If I dont add parameters in JAVA_OPTS Than jboss starts up corretly.
    ***note*** i dont have 'CLASSPATH' Environment Variable set up.
    ***note*** I have update java to 1.7, and I have paste full stacktrace with all info. still same issue.


    in CMD:
    Code:
    where java = C:\Java\jdk1.7.0_60_X64\bin\java.exe
    JAVA_HOME = C:\Java\jdk1.7.0_60_X64
    JBOSS_HOME: C:\jboss-eap-6.1
    Path=C:\
    ...
    See more | Go to post

    Leave a comment:


  • game2d
    started a topic Jboss log manager error
    in Java

    Jboss log manager error

    I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look.



    environment variables:

    Code:
    JAVA_HOME=C:\Java\jdk1.6.0_45
    JBOSS_HOME=C:\bin\jboss-eap-6.1
    Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32;
    start up jboss with following parameters:

    ...
    See more | Go to post

  • OMG it works!!!! I been working to fix this bug for past 3 months. so thanks you so much!!!!!!
    See more | Go to post

    Leave a comment:


  • Ok-_-; I think I have found the issue. The issue is in code which i didnt posted, so I have posted it below in code section 1. its where I am checking the wallSwitch variable and switches direction of each enemy.

    Code:
    public class Enemy1 extends Enemies{
       ....
    
       // collion - enemy collsion with wall so switch dir
       for (int i = 0; i < MyContactListener.wallSwitch.length; i++) {
    	if (MyContactL
    ...
    See more | Go to post

    Leave a comment:


  • ok, so I took what you guys said and try to make changes to my code.

    problem: see code section 3

    I took Nepomuk suggestion and made 'wallSwitch' into hash array. If there are two enemy than there will be two values in 'wallSwitch'. different values for different enemy store in there.


    Code:
    public class MyContactListener ... {
        public static Array<Boolean> wallSwitch = new Array<Boolean>();
    ...
    See more | Go to post

    Leave a comment:


  • problem switching direction when I create mult enemies in libgdx(box2d)

    I am using:
    --
    Libgdx and Box2d.

    -------------

    what I am trying to do:
    --
    I want enemy to move right and left. if enemy hits the wall than move the over way.

    ----

    My plan:
    --
    I have two senors set up on the enemy. one on enemy left side and other on enemy right side. so if wall hit enemy right senor than move enmey left. and if wall hit enemy left...
    See more | Go to post

  • game2d
    started a topic Breath first search on tree
    in Java

    Breath first search on tree

    how to use breath first search on binary tree?

    i might be wrong but here is what i understand about breath first seach:
    so if i use breath first search on tree below. I will get [5,2,7,1,3,8,9]
    Code:
         
          5
        /   \
       2     7
      / \     \
     1   3     8
                 \
                  9



    Code:
    ...
    private class node {
    		private String
    ...
    See more | Go to post

  • game2d
    started a topic How to print binary tree with spaces and slashs
    in Java

    How to print binary tree with spaces and slashs

    i know how to insert, print binary tree but how to print it like this? note that leafs and nodes will change and dont have to be same as this.

    Code:
    ex:
    
        6
       / \
     1    7
     /    / \
    0    5   8


    this is what i have, but this prints 6,1,0,7,8. i want to add space and slashs.
    Code:
    public void PreOrderTraversal(node root_node) {
    
    		if (root_node
    ...
    See more | Go to post

  • game2d
    started a topic error - No source code is available for type
    in Java

    error - No source code is available for type

    I am using libgdx and getting a error. I am not sure what this error means and how can I fix this?

    error:
    Code:
    	[ERROR] [com.ia.asteroid.GwtDefinition] - Line 41: No source code is available for type java.awt.geom.Line2D.Float; did you forget to inherit a required module?
    	[ERROR] [com.ia.asteroid.GwtDefinition] - Line 42: No source code is available for type java.awt.geom.Point2D.Float; did you forget to inherit a
    ...
    See more | Go to post

  • game2d
    started a topic error - FATAL EXCEPTION: GLThread 87
    in Java

    error - FATAL EXCEPTION: GLThread 87

    I am using libGDX. my core, and desktop project work fine but when i run android project it give me errors. any idea what is this error and how to fix it?


    Code:
    01-07 12:59:17.348: E/AndroidRuntime(911): FATAL EXCEPTION: GLThread 87
    01-07 12:59:17.348: E/AndroidRuntime(911): java.lang.VerifyError: com/mine/Entity/Player
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.S3_PlayState.init(S3_PlayState.java:60)
    ...
    See more | Go to post

  • game2d
    replied to checking if user is login or not
    in Java
    if its not too much to ask can you give a example? Just so I can understand it better.
    See more | Go to post

    Leave a comment:


  • game2d
    replied to checking if user is login or not
    in Java
    i c. but wont i run into same problem? ex:

    Code:
    <%
            if (session.getAttribute("username") != null) {
               isLoggedIn = true;
            }
            else{
               isLoggedIn = false;
            }
    
    
    
           if(isLoggedIn){
            ....
           }
           else{
           ....
           }
    %>
    See more | Go to post

    Leave a comment:


  • game2d
    started a topic checking if user is login or not
    in Java

    checking if user is login or not

    I have a index page of my website. it will change if user is login or not. I know how to do just by using jsp. but this is not the right way bc I am using java code in html file.

    so here is ex of doing it just by jsp
    index.jsp
    Code:
    <html>
    <body>
    	<%
    		if (session.getAttribute("username") != null) {
    			out.print("
                                <div>
    ...
    See more | Go to post

  • game2d
    started a topic How to use jsp / servlet
    in Java

    How to use jsp / servlet

    I need help making proper way to make website using jsp/servlet.

    file path: WebContent > login.jsp
    Code:
           <form method="post" action="servlet">
              what's your username?<br /> <input type="text" name="usernameF" /><br />
              what's your password?<br /> <input type="password" name="passwordF" /><br
    ...
    See more | Go to post

  • game2d
    started a topic any tile map editor

    any tile map editor

    I cant seem to find a tile map editor software where you can click and drag tiles and software makes a .map or .txt file it self?

    i was thinking some thing like http://www.mapeditor.o rg/ but it doesnt let you create .txt or .map file.

    o and by .txt or .map file i mean:

    Code:
        000000000000000000000
        000000000000000000000
        110000000111000000000
        000000000000000000000
    ...
    See more | Go to post
No activity results to display
Show More
Working...