Changing Values In Different Programs?

May 20, 2014

I'd like to make a simple cheat for an old game that's offline... It has no type of anti-cheat and I'd like to make a program that changes how much money you have... I think the first thing I have to do is get the data address or something like that by using cheat engine... How do I do that? After that how do I start using that info in my program and then send back a new value? Are there any classes that I should be importing and what methods do I use to do this?

View Replies


ADVERTISEMENT

Changing Values In Save File

Jul 26, 2014

I'm trying to change the value of bricks in my save file and for some reason it can't read the information.

public void addRecords(int brick, int log, int stone, int house){
x.format("%s%s
%s%s
%s%s
%s%s", "brick", " "+brick, "log", " " +log, "stone", " "+stone, "house", " "+house);
}

This writes information to my files. ^

public void addResource(String resource, int amount){
openFile();
readfile check = new readfile();
switch(resource){
case "brick":

[Code] .....

In my case "brick", It doesn't set the value when I try to read it. Here is the readResource method.

public int readResource(String resource){
System.out.println("Looking for " + resource);
String res = resource;
openFile();
while(x.hasNext()){

[Code] ....

Short version:

brick = check.readResource("brick");

This doesn't set brick to any value.

View Replies View Related

Personality Test Program Not Changing Array Values

Apr 1, 2014

I'm making a program for school that reads a text file with answers to a personality test and prints the temperament to an output file. Problem is, it sets the temperament for the first person to INFJ and then prints INFJ for the rest of the people too. My code is below, and the input file 'personality.txt' goes like this:

Betty Boop
BABAAAABAAAAAAABAAAABBAAAAAABAAAABABAABAAABABABAABAAAAAABAAAAAABAAAAAA
Snoopy
AABBAABBBBBABABAAAAABABBAABBAAAABBBAAABAABAABABAAAABAABBBBAAABBAABABBB
Bugs Bunny

[Code] ....

This is my Code :

public static void main(String[] args) throws FileNotFoundException {
welcome();
Scanner input = new Scanner(new File("personality.txt"));
PrintStream out = new PrintStream(new File("output.txt"));
int[][] outcome = new int[4][2];
double[] percent = new double[4];

[Code] .....

View Replies View Related

Combinatorial Queries - Changing Parameters Actual Values

Apr 30, 2014

I have a question about query execution strategy ...

Scenario: let's suppose I've to query a table with a query like

SELECT F1, F2, F3 FROM MYTABLE WHERE F1 = ? AND F2 = ? AND F3 = ?.

I need to execute this query changing parameters' actual values in a combinatorial way, until a combination gives back at least one row or all combinations are unsuccessfully tried. For instance, I may have this sequence of values:

(V1,V2,V3);
(V1,V2,"");
(V1,"",V3);
(V1,"","");

where V1, V2, V3 may by string values and V1 is always present, not null, and not blank in each combination.

A first strategy may be to prepare the statement, clear the parameters each time I execute the query, until stop condition is met.

I wonder if may be more efficient transform the query into

SELECT F1, F2, F3 FROM MYTABLE WHERE F1 = V1

and cycling over the cursor and, for each cursor row, verify if the returned tuple (F1,F2,F3) matches the combination (V1x,V2x,V3x). When at least 1 rows matches, or all combination are done, I'll exit iteration.

View Replies View Related

Use IDE When Writing Programs

Mar 27, 2014

I was wondering if you use an IDE when writing programs?Can you use J frame when using command line or is it just used with an IDE and do you go into framing in the book?I have taken programming classes and I am still stuck.

View Replies View Related

What Programs Use Abstract Classes

Sep 15, 2014

What programs use abstract classes?

View Replies View Related

Programs To Display Only Odd Numbers Between 1 And 15

Nov 16, 2014

I have a programs to write which is to display only the odd numbers between 1 and 15 and the code i use it is not display what i was expecting it to but instead it looping 15 times and at the end it says that the odd number is 15 or 1. where or what have i entered wrong. it supposed to display only the odd numbers between 1 and 15here is the code that I write.

Scanner input = new Scanner (System.in);
int i, num=0, count = 0, count_odd = 0, oddnum = 0;
for(i=1; i<=15; i++) {
System.out.println("Please enter number");
num = input.nextInt();
}

[Code]....

View Replies View Related

Resize Window To See Programs

Jan 21, 2014

Whenever I make something in Swing, I always need to resize the window for me to see the graphics on the window. I have been told to use the pack() method on it, which I have, but the problem with it is that it just sets the window to a minimal size, only displaying the x + and -.For one of the "games" I made, it at first didn't work until resize, then I added a repaint() after the constructor and it worked for me, but when my friends download it they cannot see it.

View Replies View Related

Running Programs Through Java

Mar 30, 2014

I've been playing around with this for about an hour.

Java Code:

Runtime runTime = Runtime.getRuntime();
try {
Process process = runTime.exec("notepad");
} catch (IOException e) {
e.printStackTrace();
} mh_sh_highlight_all('java');
So that works. Notepad will open.

However, I'm trying to get other programs to open. Specifically, this program: C:Octave3.2.4_gcc-4.4.0inoctave-3.2.4.exe...However, using that in place of notepad doesn't work. I'm assuming that there is some sort of system variable that explains why simply typing "notepad" works? As if you type notepad into the run box, notepad will open. Soo does that snippet work by going through some sort of system variables?How would I go about opening other programs, such as the one I referenced above.

View Replies View Related

Program That Will Allow Programs Only At Certain Time

Sep 25, 2014

So I am making a program that will allow programs only at a certain time and i'm not sure how I would set the time for the program.

View Replies View Related

How To Structure Simple Java Programs

May 8, 2015

how to structure simple programs (i.e. one-method algorithms for a simple purpose). There are a few different ways that I have been doing it, but I want to be consistent. Should I put both the one-method algorithm (e.g. a factorial function) and the main method that executes the algorithm into the same class and then export it to an executable .jar file for use? Or should I create one class for the algorithm and another for the main method that executes the algorithm? In addition, is there any reason that I should out these classes in a package before I export it?

As another similar question, if I have constructed two distinct classes with two separate purposes, and they are both used in the construction of a single program, then would it be best to just put the main method in a third, separate class or should I put it in one of the two classes?

View Replies View Related

How To Compile And Run Java Programs Using JDK And JCreator

Jan 26, 2014

How do I set the class path, the path, compile and run java programs using jdk and jcreator?

View Replies View Related

Running Java Programs From Command Prompt

Dec 17, 2011

My PC runs on Windows XP. When I try to run a java program (written using NetBeans) from the command prompt, the program opens in NotePad but does not run.This is what I have been typing at the command prompt:

C:javahellosrchelloHello.java

The above is the correct path to the Java file on my PC.how to run the program from the command prompt or perhaps link me to a tutorial that explains it?

View Replies View Related

Store Pixels Values Currently On Screen And Compare Them To Values On The First Frame?

Aug 29, 2014

I need a way to store the pixels values currently on the screen and compare them to the values on the first frame. Right now I'm using glreadpixels as follows:

currentBuffer= BufferTools.reserveByteData(mapSize);
glReadPixels(mapStartX, mapStartY, mapWidth, mapHeight, GL_BLUE, GL_UNSIGNED_BYTE, currentBuffer);
for (int i = 0; i < mapSize; i++) {
if (currentBuffer.get(i) != baseBuffer.get(i)) {
//Do nothing
continue;
}
//Do something
}

This works perfectly fine but turns out to be a real bottleneck, dropping the fps to a third of what it was. Is there any quicker way? All I'm after is speed, I don't even need to show it on the screen if the comparison is made "behind the scene".

View Replies View Related

Servlets :: How To Send Multiple Values Of Same ID But Different Values Of HTML

Feb 27, 2015

I have a question in mind that this is my registration form. I am sending these values from HTML form to server and database. I have question that in my case if I click next to Add Another Mobile no in HTML.then a block is genereated and each time a new name is generated.

My Question is if I click 6 times then 6 name attribute are generated. How can I send and differentiate them on my server side.

Because at their I will use something request.getAttribute("Attr_Name");

But they are same. How to do this?.

View Replies View Related

Changing JPG DPI Value For Some Images

Sep 25, 2014

I am currently working on Java software which resize jpeg images and change DPI also. For JPEG images having app0JFIF node it works fine and the images new DPI is reflected in Photoshop. But if app0JFIF node not exist, I am trying to create a new one and set the DPI value there. Everything is going proper but if I open these images in photoshop it does not reflect new DPI but the size changes.

Java Code:

double dpi_in_inch = 0.393701 * newres;
File file1 = new File(imgName);
image = ImageIO.read(file1);
int wd, hi;
wd = (int) (newsize * dpi_in_inch);

[Code] ...

View Replies View Related

Changing Superclass Parameters?

Jul 16, 2014

My understanding was I could override a method from the superclass, including with different parameters, but when I try to use super. it gives me an error the arguments have to match the superclass. But, if I do that it won't make any sense.

The first code below is the superclass. The issue I'm having is on the second code at lines 7 and 10. The ultimate goal is to make a new class where I'm able to display various packages with or without insurance.

public class Package {
double shippingWeight;
public char shippingMethod;
final char air = 'A';
final char truck = 'T';
final char mail = 'M';
double shippingCost;

[code]....

View Replies View Related

Changing For Loop To While Statement?

Aug 23, 2014

I am having trouble doing a simple exercise changing a for loop to a while statement, it works fine in the for loop but in the while statement it just prints out 10(it is supposed to count to 0 and print liftoff).

public void run() {
int i = 10;
while (i>=1) {
println(+i+"...");
i--;
}
println("liftoff..."); 
 }

View Replies View Related

Changing Hour To Minutes?

May 1, 2014

I have a servlet with a method:

/**

* @return <code>double</code> Hours
*/
public double getDriveHours() {
return getAsDouble("DriveTime", 0.0D);
}

I would like to change the time to minutes. I will create a new entry in the db for the minutes, but wondered if the time minutes is also double.

View Replies View Related

Swing/AWT/SWT :: Color Is Not Changing

Jan 29, 2015

Color only changes, when resizng frame with mouse, not when clicking.

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class SimpleGui1 implements ActionListener {
JFrame frame;
MyDrawnPanel drawnPanel;

[Code] .....

View Replies View Related

Changing Format For Timer?

Mar 17, 2014

im making a javabean for stopwatch which works perfectly, but i want in the property descriptor format, so the user can change its format.

currently i have;

private String displayFormat = "MMMM d, yyyy h:mm:ss";
private SimpleDateFormat formatter;
public synchronized void setDisplayFormat(String newFormat) {
String oldFormat = getDisplayFormat();
try {
formatter.applyLocalizedPattern(newFormat);
timerHasPinged();

[code]....

currently the timer works its format is in 00:00 minutes:seconds, but i want it to start as MMMM d, yyyy h:mm:ss, for example March 17 2014 00:00:01, so only one second has passed here. i believe the set and get format method is fine but the timerhaschanged needs to change as this is where the format takes place.

View Replies View Related

Changing Ints From Another Class

Jun 27, 2014

I am making a simple text based game and i have a monster, and I am tring to make its health go down whent he user input "s" but istead it doesnt change and the users health even goes up.

Main.java

package exodus.game.main;
import java.util.Scanner;
import exodus.game.monsters.Nirav;
public class Main {
static String name;
static String inputtemp;

[Code] .....

View Replies View Related

JTextArea Changing Txt File

Apr 24, 2014

Every time I load a txt file into a JTextArea it prints the results to the JFrame incorrectly I notice its mainly the white spaces this is happening to. I have tried a few ways to remedy this problem but it still keeps occurring? I've tried append() read() also setText() even Scanner. I have enclosed a picture of my GUI and my txt file I am using.

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import javax.swing.JFrame;
import javax.swing.JTextArea;

[Code] ....

Attached image(s)

View Replies View Related

Creating UML And Changing Color?

Oct 20, 2014

The Toys of the Future Company has decided to issue a new line of toy robots. While they are not sure exactly what their robots will look like, they do know the functionality that they will all have. All robots will be able to move forward, turn right, turn left, spin and detect an object in front of it via a sensor. The robot will use a touch sensor to determine whether it has hit an object in front of it, such as a wall. The robot will have two, three, or four wheels, but it will only be driven by two of them: a right wheel and a left wheel. Each wheel will be attached to a motor that controls it.

* ^ this is only something to think about
Produce a UML class diagram.

Using UML, describe the objects and classes that will be associated with this new toy. Either hand draw or use an appropriate UML creation tool to generate a UML design document for your Robot class. Create a set of classes that can be used to control the robot.

Develop your new class.

Create a new NetBeans project entitled, "Assignment_8_1" and develop your new class. Now, using the objects and classes that you have written, write a program for your robot that allows it to move in a large square. Allow your robot to run in a big two dimensional array and every time the robot encounters a square in your array, turn that square black.

So here is the code for the moving ball:

package ballapplet;
import java.awt.*;
import java.util.Formatter;
import javax.swing.*;
public class BallApplet extends JPanel {
private static final int BOX_WIDTH = 640;

[Code] ....

I want to know how to change the color of an object, and how to move it in specific directions.

View Replies View Related

Changing Variables That Are Passed In?

Apr 11, 2014

I'm having some trouble figuring out how to change the value of a variable that is passed into a class. I've tried just changing the variable, I've tried changing it by using the this.variable command, and I've even tried calling the setter class from within the class to change it, but it's still not working right. The first class is the one with Main in it and I just feed it some dummy data:

public class ExamConverter {
public static void main(String[] args) {
// TODO Auto-generated method stub
Age testAge = new Age();
 
[Code] .....

This is the other class to calculate the age the way we do it on psych tests - it might not be mathematically accurate, but it's what all the tables and such for raw to scaled score conversion are based on, so the math needs to be the same as opposed to "accurate" because of some months having 30 or 31 days, etc.

public class Age {
//==================Properties==================
// Variables for the test date and client date of birth
private int TestMonth;
private int TestDay;
private int TestYear;
private int ClientMonth;
private int ClientDay;
private int ClientYear;
 
[Code] ......

Based on this dummy data, the output is:
Test: 5/4/2014
DOB: 5/5/1971
Age Years: 43 Months: 0 Days: 0

However, it should be:
Test: 5/4/2014
DOB: 5/5/1971
Age Years: 42 Months: 11 Days: 29

View Replies View Related

Changing JList That Is Already Displayed

Nov 5, 2014

I have a empty JList in which I hit a button LOAD DATA which should load all the data. but once I load data i try to fill in the List but I keep getting errors.

String[] aos = new String[itrList.size()];
itrList.toArray(aos);
//JList listFAIL = new JList(aos);
//list = new JList(itrList.toArray());
//list.removeAll();
list.setListData(aos);
JScrollPane s = new JScrollPane(list);

I have tried doing setListData and i get a error;

And if i do new Jlist it doesn't change the data.

The List does fill as i have a checker for that.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved