Cyberpunkgothic1 on 10/12/2012 at 06:35
The password of the homepage got hacked again. I don't know why anyone should blame on it, it is such a little project! :)
Cyberpunkgothic1 on 11/12/2012 at 13:44
The next Release will take it's time.
Cyberpunkgothic1 on 15/12/2012 at 08:55
I tried to install SS2 and SS2Tool on Windows 7 64Bit but failed with this task. Isn't it possible to run SS2 on W7???
Thank you!
Cyberpunkgothic1 on 16/12/2012 at 11:19
I had sucess, but DirctX was after that the old version on Windows7 :p
I will play System Shock first! :)
Cyberpunkgothic1 on 21/12/2012 at 09:59
ToolSS2 seams possible! I will test and play this on Christmas! :)
One time I gave SS2Tool a try, it doesn't seamed compatible with Shockcfg, because there were some cfg-Files were missing. Is this still the case?
What will you all play over christmas?
Cyberpunkgothic1 on 3/1/2013 at 20:19
ToolSS2 is compatible with ShockCfg. I didn't played SS and SS2 but finally I will play SS within DOSBox and SS2 within ToolSS2 on my x64System with W7. :)
ShockCfg is currently down, but I will release it soon with Xerxes completely in green/black.
Cyberpunkgothic1 on 4/1/2013 at 20:46
Who can help with the Filechooser? :)
Cyberpunkgothic1 on 16/1/2013 at 08:00
Here is the problem with the FileChooser I didn't got help in the forums. The Code for the triangle is there, but it don't paints in the two Comboboxes. The Code for the triangle needs to be doubled and I don't know the handle for the two Comboboxes?
Moreover the borders of the filelist and the directoryname need to become green?
And also the buttons need to be bigger?
Who knows the handles? :)
import java.io.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.plaf.basic.BasicArrowButton;
import javax.swing.plaf.basic.BasicComboBoxUI;
import javax.swing.plaf.basic.BasicComboPopup;
import javax.swing.plaf.basic.ComboPopup;
import XerxesButton.MyLangBuBasicArrowButtonCB;
import java.util.Locale;
public class WriteCfg
{
private final JFileChooser dir;
private int returnval;
private File shock2exe;
private BufferedWriter bufferwrite;
public SetRes setres;
public ReadCfg readcfg;
public WriteCfg(SetRes setres, ReadCfg readcfg)
{
this.setres = setres;
this.readcfg = readcfg;
UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.black));
UIManager.put("activeCaptionText", new javax.swing.plaf.ColorUIResource(Color.green));
javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new NoBumpsTheme());
JDialog.setDefaultLookAndFeelDecorated(true);
//Inverting Colors for pressed Buttons
try {
UIManager.setLookAndFeel( new MyLookAndFeel() );
} catch (UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//Green Border
Border border = BorderFactory.createLineBorder(Color.green);
UIManager.put("Button.border", border);
//Invertin Colors
UIManager.put("Button.select", Color.green);
//filechooser opening
dir = new JFileChooser("Select Shock 2 Directory")
{
/**
*
*/
private static final long serialVersionUID = 1L;
public JDialog createDialog(Component parent)
{
JDialog d = super.createDialog(parent);
d.getContentPane().setBackground(Color.black);
return d;
}
};
changeColor(dir.getComponents());
dir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
returnval = dir.showDialog(null, setres.getTxt().getString("WriteCfgDia2"));
if (returnval == JFileChooser.APPROVE_OPTION)
{
shock2exe = dir.getSelectedFile();
try
{
//make shockcfg.cfg
bufferwrite = new BufferedWriter( new FileWriter("ShockCfg.ini"));
readcfg.setreadpath(shock2exe.getPath());
bufferwrite.write(readcfg.getreadpath());
//thx to Al_B
bufferwrite.write("\r\n");
Locale w = Locale.getDefault();
if(w.getLanguage().equalsIgnoreCase("GERMAN"))
{
bufferwrite.write("GERMAN");
}
else
{
bufferwrite.write("ENGLISH");
}
bufferwrite.write("\r\n");
bufferwrite.close();
}
catch (IOException ex)
{
System.out.println(setres.getTxt().getString("WriteCfgErr"));
System.out.println(ex);
System.exit(0);
}
}
else
{
System.exit(0);
}
}
public void changeColor(Component[] comp)
{
for(int x=0; x<comp.length; x++)
{
try
{
comp[x].setBackground(Color.black);
comp[x].setForeground(Color.green);
}
catch(Exception e) {}
if(comp[x] instanceof Container)
changeColor(((Container)comp[x]).getComponents());
}
}
}
/*
class MyUIComboBox extends BasicComboBoxUI
{
protected ComboPopup createPopup()
{
//???
return new BasicComboPopup(FilterComboBox){
private static final long serialVersionUID = 1L;
protected JScrollPane createScroller()
{
JScrollPane sp = super.createScroller();
sp.setViewportBorder(new javax.swing.border.LineBorder(Color.GREEN));
return sp;
}
};
}
protected ComboBoxEditor createEditor()
{
ComboBoxEditor cbe = super.createEditor();
cbe.getEditorComponent().setBackground(Color.BLACK);
cbe.getEditorComponent().setForeground(Color.GREEN);
return cbe;
}
protected JButton createArrowButton()
{
return new MyLangBuBasicArrowButtonCB(BasicArrowButton.SOUTH,
UIManager.getColor("ComboBox.buttonBackground"),
UIManager.getColor("ComboBox.buttonShadow"),
UIManager.getColor("ComboBox.buttonDarkShadow"),
UIManager.getColor("ComboBox.buttonHighlight"));
}
}
class MyLangBuBasicArrowButtonCB extends BasicArrowButton
{
private static final long serialVersionUID = 1L;
public MyLangBuBasicArrowButtonCB(int direction,Color background,Color shadow,Color darkShadow,Color highlight)
{
super(direction,background,shadow,darkShadow,highlight);
setBackground(Color.BLACK);
setBorder(new javax.swing.border.LineBorder(Color.GREEN));
}
public void paintTriangle(Graphics g,int x,int y,int size,int direction,boolean isEnabled)
{
Color oldColor = g.getColor();
int mid, i, j;
j = 0;
size = Math.max(size, 2);
mid = (size / 2) - 1;
g.translate(x, y);
g.setColor(Color.GREEN);
j = 0;
for(i = size-1; i >= 0; i--)
{
g.drawLine(mid-i, j, mid+i, j);
j++;
}
g.translate(-x, -y);
g.setColor(oldColor);
}
}
}
*/
Cyberpunkgothic1 on 8/2/2013 at 20:39
ShockCfg is hacked again. I was stupid not to ask this earlyer. why can't i freely rename it's foler? Al_B
this is my workingplace! :0 ;)
Version 3.03.05 is also hacked by the group who hacked (
www.java-forum.org).
good night
Cyberpunkgothic1 on 8/2/2013 at 23:51
Al_B, you send me a hacked program!!! :(
Please tell me what is hacked. :)
I'm paied by the german state for this program with sozial money! And Al_B said he is a russian, so russia blamed on the germans! :(
Rickenbacker is no fun, like the rest of the program!
Feeling like a solitary angel!
(
http://www.youtube.com/watch?v=PsTgcBb7D84)